Commit Graph

279 Commits (cbdd559a759b5aef9b1c97d8b69a29e159d14ae1)

Author SHA1 Message Date
John Benediktsson 6f1c44b46d Cleanup some lint warnings. 2011-10-15 19:19:44 -07:00
John Benediktsson 378786599d Cleanup lint warnings. 2011-10-14 11:47:24 -07:00
John Benediktsson 6417f36397 namespaces: adding a "with-global" word to replace "global [ ] bind". 2011-10-13 17:21:59 -07:00
Doug Coleman fb178b19a3 Fix using list for http.server tests 2011-10-12 23:19:11 -07:00
John Benediktsson e7fb699832 http.server: ignore preceding whitespace before request lines. Fixes #252. 2011-10-12 20:21:16 -07:00
John Benediktsson 1769a63ca3 http.client: too aggressive with ?CRLF. 2011-10-12 20:14:21 -07:00
John Benediktsson 46f8225f7a http: change client/server to support LF and CRLF delimited headers. 2011-10-12 12:51:49 -07:00
John Benediktsson 9f34c9c676 Spelling fixes to documentation. 2011-08-26 16:20:31 -07:00
otoburb 76b5399d68 http.client-docs: Added documentation for HEAD, TRACE, OPTIONS and DELETE methods 2011-05-24 22:05:27 -04:00
otoburb b8b1c30062 http.client: Added OPTIONS, TRACE and HEAD HTTP methods 2011-05-12 01:32:00 +00:00
John Benediktsson d58bc08aa0 Update code that did ">alist sort-" to just "sort-". 2011-04-07 09:01:21 -07:00
Doug Coleman 979e487fef Merge branch 'master' of git://factorcode.org/git/factor 2011-02-26 11:44:50 -06:00
Doug Coleman 02ecc45165 Don't normalize cookie names to lower-case. 2011-02-10 21:09:20 -06:00
Keita Haga 073eda332a In several documentation, remove whitespace before or after the colon or period 2011-02-10 01:51:13 +09:00
Keita Haga 3ba83001e4 http.client: fix typo in docs 2011-01-05 01:00:13 +09:00
Slava Pestov b10897334c io.sockets.secure: add ssl-supported? hook, and make furnace.auth and twitter vocabs use it. This makes furnace work on Windows 2010-10-24 15:54:19 -07:00
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
Slava Pestov 39391fe852 CGI responder would fail if the CGI script would emit non-ASCII characters; set encoding to binary 2009-01-07 13:46:52 -06:00
Slava Pestov 44b6a490a1 Add protocol slot to make it work with funny load order 2008-12-19 00:52:41 -06:00
Slava Pestov c5160d76e9 Merge qualified, alias, symbols, constants into core 2008-12-17 18:10:01 -06:00
Slava Pestov 63fda570bf Fixing assorted compile errors and help lint warnings 2008-12-16 01:12:36 -06:00
Slava Pestov daf2857d7b define-inline now takes an effect parameter
C: now sets the stack effect of the new word to slot names
add new basis/constants vocab; CONSTANT: foo bar is equivalent to : foo bar ; inline
(going to fold CONSTANT:, ALIAS: and qualified into core soon perhaps)
tighten the screws: inline words now need a stack declaration too
update some usages of inline words
2008-12-15 19:44:56 -06:00
Slava Pestov 5cb18d51b3 Fixing test-all and help-lint-all failures 2008-12-15 03:33:04 -06:00
Slava Pestov e0f86889c7 Fixing load-everything for io.files split 2008-12-15 01:13:35 -06:00
Slava Pestov 59a5e554d4 Split up io.directories further, move file types to io.files.types. Bunny demo no longer pulls in file-info and file-system-info code, reducing image size by 35kb 2008-12-15 00:01:06 -06:00
Philipp Winkler 0cc4dc4e0a Allow post data to be send on PUT as well as POST actions. Allow any message between 200 and 299 to mean success. 2008-12-10 21:30:33 -08:00
Slava Pestov 5bfa17d962 Split off error. methods into sub-vocabs in a few places 2008-12-08 20:04:13 -06:00
Doug Coleman 7d2ca36fad swap 3append -> glue 2008-12-03 19:13:18 -06:00
Alex Chapman 2250ecc42b Merge branch 'master' into experimental 2008-11-26 15:04:38 +11:00
Slava Pestov 6297c4d2e4 Make cookie parsing more permissive 2008-11-24 20:26:29 -06:00
Doug Coleman de7b002baf use mime.types not mime-types 2008-11-21 22:13:14 -06:00
Slava Pestov 9bf63b1613 New $quotation markup element 2008-11-16 09:03:30 -06:00
Slava Pestov 93e9e34175 Add $maybe markup element 2008-11-16 06:02:13 -06:00
Alex Chapman 030619114f Un-privatising a word in http.client 2008-11-01 20:39:18 +11:00
Alex Chapman 59e76f4d13 Changes to http.client for couchdb
I made the download-failed error contain the data returned by the
server.
2008-11-01 15:35:23 +11:00
Alex Chapman 7186c67354 Merge branch 'master' of git://factorcode.org/git/factor into couchdb 2008-10-28 22:55:18 +11:00
Slava Pestov 1df08ba8c8 Unit tests no longer use hard-coded ports 2008-10-20 22:05:22 -05:00
Doug Coleman e9c79ee85e fix directory. 2008-10-19 20:42:27 -05:00
Doug Coleman 0e9ecc1ba9 directory changes 2008-10-19 13:09:48 -05:00
Alex Chapman 629289b46f Work on couchdb in progress. Added http-delete, http-trace, refactored some of http.client. 2008-10-13 17:01:29 +11:00
Alex Chapman b2ba2ebbbc Merge branch 'experimental' into couchdb 2008-10-13 15:44:42 +11:00
Alex Chapman a643c0f0f1 Merge branch 'experimental' into couchdb 2008-10-02 15:01:49 +10:00
Slava Pestov 1cf1d967ea New combinators for incremental HTTP requests 2008-10-01 05:43:20 -05:00
Slava Pestov b546ad3c6d Fix problem odd headers sent by Windows CE 2008-10-01 03:13:56 -05:00
Slava Pestov 6a97831ba5 Add example to docs 2008-09-30 22:42:57 -05:00
Slava Pestov 57c9012d49 Debug CGI 2008-09-29 21:18:37 -05:00
Slava Pestov 97c5324142 Fix laod error 2008-09-29 20:09:31 -05:00
Slava Pestov 845c30496d Update usings 2008-09-29 19:49:17 -05:00
Slava Pestov dc1d7c76b7 Clean up some web framework code 2008-09-29 04:10:00 -05:00
Slava Pestov d3423bec4f Better logging 2008-09-28 17:56:44 -05:00
Slava Pestov 7240c9f717 Fix help lint 2008-09-27 15:22:35 -05:00