Commit Graph

213 Commits (fd06e22e9a056ec1ba88cde5b883dc60c11b2214)

Author SHA1 Message Date
Slava Pestov 89ae9d9638 Various cleanups for Doug's recent socket addressing change
- urls: now have a host/port slots again, add a new set-url-addr word
- http.server: fix host header parsing for IPv6 addresses
2010-10-06 23:00:38 -07:00
Doug Coleman 32f447d796 Since ip4/ip6 services can run on different ports, we must include which version of ip we're using instead of just a port. Make URL objects store an inet4/i nt6/inet object with host/port slots instead of storing host/port slots separately. Stricter error checking on inet4/inet6 tuple creation. Update lots of code related to the URL change. 2010-10-05 09:56:29 -05:00
Slava Pestov 875e7c17ec http.server.static: look for index.fhtml when fhtml is enabled 2010-09-28 21:34:15 -07:00
Doug Coleman 0bbfa64b24 Squashed commit of the following:
commit 54b3e19c7407707fabddd53872559c58cd5143d2
Author: Doug Coleman <doug.coleman@gmail.com>
Date:   Mon Sep 27 19:10:15 2010 -0500

    Fix typo

commit 3207516dc93e0e1edc9f119efcc79f4484eab244
Author: Doug Coleman <doug.coleman@gmail.com>
Date:   Mon Sep 27 19:08:30 2010 -0500

    Rename io.servers.connection to io.servers
2010-09-27 19:12:33 -05:00
Doug Coleman 87ec88ff6c Fix http tests and io.server.connection docs 2010-09-19 15:47:25 -05:00
Doug Coleman aa8c12a84b Squashed commit of the following:
commit 8a15381d30508b8f36a9e36dc3a0afc3c962c853
Author: Doug Coleman <doug.coleman@gmail.com>
Date:   Sat Sep 11 14:32:30 2010 -0500

    Squash threaded-server branch
2010-09-19 13:38:02 -05:00
Doug Coleman dc4970e234 Fix file uploads by using unlimit-stream for now. Will compare solution to with-combinators tomorrow. 2010-09-08 02:50:25 -05:00
Slava Pestov 97e6ac1c50 http: turns out we do need to handle port number in host header, and client needs to send it but only for non-default ports, since sending it for the default port breaks Twitter's HTTP server (reported by John Benediktsson) 2010-08-20 18:28:50 -07:00
Joe Groff f7960c7f6a http.server: reintroduce some code cleanups now that it's back in a working state 2010-07-09 14:52:42 -07:00
Joe Groff 67a241eba3 http.server: revert d00ea changes so that server works again 2010-07-09 14:47:34 -07:00
Joe Groff 0bdc1514fd io.streams.limited: remove unlimit* 2010-07-09 13:52:15 -07:00
Doug Coleman 2ca509a8fe Split off io.streams.throwing from io.streams.limited and update usages of limited streams 2010-07-09 13:32:09 -05:00
Slava Pestov a7dec01453 http: host header should not include the port number 2010-07-05 22:55:20 -04:00
Slava Pestov 01c0db90a4 http.server: more doc fixes 2010-06-28 17:42:48 -04:00
Slava Pestov 0bea14dcd5 http.server: tweak docs 2010-06-28 17:31:45 -04:00
Daniel Ehrenberg aa6158b366 Changing require-when usages to the new syntax for require-when 2010-04-18 14:29:24 -05:00
Daniel Ehrenberg eb060443db Updating code to use require-when rather than vocab [ require ] when 2010-03-18 01:13:37 -04:00
Slava Pestov e30d18aefc http: update docs 2010-03-15 19:25:20 +13:00
Slava Pestov 937b05f1de http: clean up and fix some content encoding logic 2010-03-13 22:10:36 +13:00
Slava Pestov 02a4082e1f http.server: decouple charset header from encoding used to send the data, and serve text files as UTF-8 by default 2010-03-13 19:07:35 +13:00
Doug Coleman 55e772c528 Remove the http-data word 2010-03-01 22:32:15 -06:00
Doug Coleman 18c0935b64 Docs for http-data 2010-02-27 07:58:37 -06:00
Doug Coleman 9bf7f56283 Add a new word http-data that is just http-get nip 2010-02-27 07:58:35 -06:00
otoburb dbbcf74cda Updated post-data slot names in http-docs.factor 2009-12-15 18:12:48 -05:00
Slava Pestov 0612bc6177 Factor source files should not be executable 2009-11-21 17:50:43 -06:00
Doug Coleman b71d86a1dc update more 8bit encoding usages 2009-11-12 18:36:47 -06:00
Slava Pestov f5a0a8b6e1 delete -> remove! 2009-10-27 23:25:35 -05:00
Keith Lazuka 405e5d015b docs: change $subsection to $subsections 2009-10-02 12:15:48 -04:00
Doug Coleman eceed177d6 replace usages of <" with """ 2009-09-20 22:42:40 -05:00
Doug Coleman 3f3d57032b Delete empty unit tests files, remove 1- and 1+, reorder IN: lines in a lot of places, minor refactoring 2009-08-13 19:21:44 -05:00
Slava Pestov b1a85133dc http.server.rewrite: fix typo in docs 2009-08-05 03:35:31 -05:00
Doug Coleman 5d19f868fb fix using list 2009-08-03 17:32:56 -05:00
Slava Pestov 181d9ca07d http.server.rewrite: facility for making URLs prettier, and dynamic dispatching on the first part of a host name. Doug go nuts 2009-08-03 14:58:56 -05:00
Slava Pestov 3857006b71 Move furnace.actions:{param,params} and furnace.utilities:request-params to http.server 2009-08-03 14:58:18 -05:00
Slava Pestov c4f4c6749f Fixing some test failures after url.encoding change 2009-07-09 19:02:15 -05:00
Alfredo Beaumont 45ee0a4269 Added support for custom redirect number in http requests 2009-06-18 20:47:08 +02:00
Doug Coleman 50e6fac013 change threaded-server and managed-server to take an encoding 2009-05-30 19:15:53 -05:00
Doug Coleman 407377fc98 rename peek -> last and update all usages 2009-05-25 16:38:33 -05:00
Slava Pestov 66a9416473 Update documentation for stricter vocabulary search path semantics 2009-05-16 00:29:21 -05:00
Slava Pestov b62630b5ac Updating code in basis and extra for stricter vocab search path semantics 2009-05-14 23:23:06 -05:00
Slava Pestov fb6df472a2 Cleaning up USING: lists for new strict semantics 2009-05-14 16:54:16 -05:00
Slava Pestov b2c3183b21 Split up tools.vocabs. Note that load-everything is now named load-all 2009-05-04 06:44:17 -05:00
Slava Pestov a362ea7d6d Tweak http.client docs 2009-04-30 22:10:18 -05:00
Slava Pestov 05f3f9dcb9 Fixing unit tests for stack effect inference changes 2009-04-20 21:15:19 -05:00
Alex Chapman 9e4adede5f Add <delete-request> and http-delete 2009-04-15 10:52:00 +10:00
Alex Chapman f2596259dd Merge branch 'master' into experimental
Conflicts:
	basis/http/client/client.factor
2009-04-14 10:42:41 +10:00
Alex Chapman ace909795d couchdb in progress 2009-04-14 10:00:09 +10:00
Slava Pestov cedbad0772 Fix tests to not clutter Factor directory 2009-04-13 15:21:16 -05:00
Slava Pestov 694652590f download word throneeds to ws an error if the request did not return a success code (reported by Chris Double) 2009-04-09 08:18:26 -05:00
Slava Pestov 63cf5b04e1 http.client: fix 307 redirect behavior (reported by Chris Double) 2009-04-07 04:19:21 -05:00
Slava Pestov 2c1f7b9293 Static responder now works when the root is a file rather than a directory 2009-04-07 03:37:29 -05:00
Slava Pestov 723bfab030 Fixing unit tests for syntax change 2009-03-23 00:34:02 -05:00
Slava Pestov fd0fd8fb71 Remove useless slot 2009-03-20 01:53:49 -05:00
Slava Pestov 4b26ff6a95 Add variables to set request-limit and upload-limit 2009-03-20 01:47:09 -05:00
Daniel Ehrenberg d5af5027d0 Making http use ASCII rather than Unicode; fixing encodings bug 2009-03-18 18:49:59 -05:00
Slava Pestov be4fb1e7d9 Move call( and execute( to core 2009-03-16 20:11:36 -05:00
Slava Pestov 0d38d2f7e8 Fix more stack effects 2009-03-15 18:28:46 -05:00
Slava Pestov 8e55533bfa Tweak some furnace code to infer and load with almost no warnings 2009-03-15 18:19:29 -05:00
Alex Chapman 47faa0eefe Merge branch 'master' into experimental 2009-03-13 10:26:23 +11:00
Slava Pestov 81d23c3ac0 Fix parse-content-type for quoted tokens 2009-03-08 17:33:17 -05:00
Slava Pestov 6330272760 Fix CGI 2009-03-07 22:09:57 -06:00
Slava Pestov c28370d356 Allow headers containing " to fix problem reported by doublec 2009-03-07 21:24:32 -06:00
Slava Pestov 4f81b6750f Make cookie header parser more lenient 2009-03-07 20:32:07 -06:00
Slava Pestov cd53c2bd37 produce and produce-as: don't need third quotation either 2009-02-28 15:31:34 -06:00
Alex Chapman 969fff0f5b Merge branch 'master' into experimental 2009-02-25 11:16:11 +11:00
Alex Chapman 7b1ed9889f Merge branch 'master' into experimental
Conflicts:
	basis/http/client/client.factor
2009-02-16 12:48:58 +11:00
Daniel Ehrenberg e90ad88876 Merge branch 'master' of git://factorcode.org/git/factor 2009-02-13 15:10:41 -06:00
Joe Groff 2bb9448ebc add set-basic-auth to http, and make http-request stuff the response body in the error message on failure 2009-02-12 22:39:26 -06:00
Daniel Ehrenberg 1682a5512a Minor docs fix and cleanup in http.server.static 2009-02-12 22:26:44 -06:00
Slava Pestov 07caee3405 Update some existing code to use initialize 2009-02-10 16:16:12 -06:00
Daniel Ehrenberg 86c3481f12 Moving XML vocabularies around 2009-02-05 21:17:03 -06:00
Slava Pestov cb174f0db1 Regression: HTTP server would fail to serve files with binary encoding after Dan's io.encodings.iana changes from earlier today 2009-02-04 04:17:24 -06:00
Daniel Ehrenberg 594f21e5bd Fixing HTTP and IANA tests 2009-02-03 19:44:28 -06:00
Alex Chapman ec811be0a0 Merge branch 'master' into experimental 2009-02-03 11:57:36 +11:00
Slava Pestov e089ce6df0 Fix http test 2009-02-01 02:02:09 -06:00
Slava Pestov 7a8dc80426 Fix some issues in http.server 2009-01-31 20:54:49 -06:00
Daniel Ehrenberg d4f865d5f0 Fixing some things I broke 2009-01-30 19:28:16 -06:00
Alex Chapman a04d8aaf17 Merge branch 'master' into experimental 2009-01-30 21:22:54 +11:00
Alex Chapman da7a6da6a5 Merge branch 'master' into experimental
Conflicts:
	basis/http/client/client.factor
2009-01-30 21:20:28 +11:00
Doug Coleman 3c408342ef renaming: contain? -> any?, deep-contains? -> deep-any?, pad-left -> pad-head, pad-right -> pad-tail, trim-left -> trim-head, trim-right -> trim-tail 2009-01-29 22:19:07 -06:00
Daniel Ehrenberg cadbcdc9a4 Fixing everything now(?) 2009-01-29 15:15:50 -06:00
Daniel Ehrenberg 6372395b8a Fixing everything I broke? 2009-01-29 13:33:04 -06:00
Daniel Ehrenberg d5160ce791 Fixing USING: lines 2009-01-28 15:46:34 -06:00
Alex Chapman 4e41211399 Merge branch 'master' into experimental (untested!)
Conflicts:
	basis/http/client/client.factor
2009-01-28 20:58:35 +11:00
Slava Pestov 6b25e99470 Add summary for heaps more vocabs 2009-02-16 21:05:13 -06:00
Slava Pestov 6b99b04531 Add vocab: for vocab-relative paths 2009-02-15 19:53:21 -06:00
Daniel Ehrenberg fcb56cf6db Factored out io.crlf 2009-01-27 18:42:17 -06:00
Slava Pestov 56260087ae Merge branch 'master' of git://factorcode.org/git/factor 2009-01-26 23:20:45 -06:00
Slava Pestov 92f9338978 Smart quotes 2009-01-26 23:20:27 -06:00
Doug Coleman 43830f5fcc make mime parsing return a single hashtable instead of several different ones 2009-01-26 15:23:49 -06:00
Slava Pestov 29b561a7ee Fix load error 2009-01-23 21:10:23 -06:00
Slava Pestov 7b344408ff Working on better POST and PUT requests 2009-01-23 20:02:14 -06:00
Slava Pestov f34c14a0f5 Remove some usages of tuck 2009-01-23 18:20:47 -06:00
Slava Pestov 6e9f0dbfdd Update http.client docs for PUT request and stream post-data 2009-01-22 23:01:29 -06:00
Slava Pestov dad22d0ee5 Fix http help lint 2009-01-22 20:08:23 -06:00
Slava Pestov f160771123 Fix POST with streams to use chunked encoding, add http-put word 2009-01-22 19:08:38 -06:00
Doug Coleman 376f332eef allow streams in the post-data tuple 2009-01-21 22:21:40 -06:00
Doug Coleman 3150722c7f better http.server that handles multipart data in the same way as regular form data. fix http client for changes 2009-01-21 19:55:25 -06:00
Doug Coleman 050dbf8a60 http server can upload files. WOW! 2009-01-20 16:35:52 -06:00
Slava Pestov e6aa33ac12 Add new intersects? word and use it in a few places instead of intersect empty? 2009-01-12 01:51:38 -06:00