Commit Graph

279 Commits (cbdd559a759b5aef9b1c97d8b69a29e159d14ae1)

Author SHA1 Message Date
Doug Coleman 40892c0302 tests: prefer ${ } instead of 1array 2015-07-02 14:56:14 -07:00
Doug Coleman 59f3b1ea57 Revert "factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!"
Needs a bit more work.

This reverts commit 7e54cc2824.
2015-07-02 13:47:06 -07:00
Doug Coleman 7e54cc2824 factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool! 2015-07-02 11:36:08 -07:00
Doug Coleman 999aa7c897 factor: clean up spaces in -tests files 2015-07-02 10:34:01 -07:00
Doug Coleman e3cb325040 factor: clean up whitespace in -docs files 2015-07-02 10:31:22 -07:00
Doug Coleman 352e5de16a core, basis, extra: Remove DOS line endings from files.
Remove whitespace from end of lines.
Add a newline to the end of each file.
2015-06-29 17:25:40 -07:00
John Benediktsson 2c3492a916 minor cleanup to some docs. 2015-05-13 16:09:14 -07:00
Björn Lindqvist ba8caa72fb io.crlf: the lf>crlf and crlf>lf words looks generally useful, lets put them in io.crlf to reduce some code duplication 2015-05-12 09:32:05 -07:00
Björn Lindqvist 36444f328f http.server.requests: an upper limit is needed for the content-length header 2015-05-12 09:32:05 -07:00
Björn Lindqvist 7647020615 http.server: extend handle-client-error so that it responds with 400 Bad Request if the request is invalid 2015-05-12 09:32:05 -07:00
Björn Lindqvist eac41a588a http.server.requests: if the content-length header is missing or invalid, a (controlled) error is thrown 2015-05-12 09:31:22 -07:00
Björn Lindqvist d30beb13ed http.server.requests: system for read-request for reporting errors
The idea is that read-request throws request-error if something is
wrong with the request. handle-client* can then catch it and respond
with 400 bad request. This way you can differentiate between bad
requests and requests that causes the HTTP server to crash.
2015-05-12 09:31:22 -07:00
Björn Lindqvist 99012bb20a http.server.requests.tests: more tests for POST requests handling 2015-05-12 09:31:21 -07:00
Björn Lindqvist f75ee294e7 http.server.requests: refactor the http.server vocabs request handling into its own vocab 2015-05-12 09:31:21 -07:00
John Benediktsson 9eb365abe0 http.client: add quot stack effect. 2015-04-17 17:54:29 -07:00
John Benediktsson e164fcf431 http.parsers: parse a "simple request". 2015-03-11 17:48:28 -07:00
Doug Coleman ed7ceaf900 http.server: Make sure http.forms is loaded for http.server docs. Fixes #1216. 2014-11-23 01:05:21 -08:00
Benjamin Pollack 2c3dd8c3c8 Remove executable bit from tons of files that aren't 2014-11-05 20:40:42 -08:00
Björn Lindqvist 84663ca054 http.server: handle certain parse-errors from the peg vocab
Browsers that can't verify the certificate doesn't send any request at
all which causes parse-errors to be unnecessarily thrown and logged.
2014-10-23 11:31:17 -07:00
Björn Lindqvist 1824680ad1 furnace.db: db-persistence needs a dispose word that delegates to its pool slot
tests in http.tests refactored using "with-words" so that they always
dispose any db-persistence instances they create.
2014-09-28 20:39:25 -07:00
John Benediktsson 1701fe3f59 http.client: adding version of download-to that checks file exists. 2014-06-09 08:57:45 -07:00
John Benediktsson 57f9d78892 improve help by linking to types directly. 2014-05-23 20:20:15 -07:00
John Benediktsson 98935b7f15 docs: change ``{ $quotation "( x -- y )" }`` to ``{ $quotation ( x -- y ) }``. 2014-05-18 20:09:10 -07:00
John Benediktsson 78d0aad87d http.server.responses: adding <html-content>, use it. 2014-04-22 13:47:25 -07:00
Profpatsch 902e877c12 http.server.responses: Add <text-content>, improve docs. 2014-04-22 13:34:01 -07:00
John Benediktsson d4a56057f0 http.client: add starred versions that do not check response code for success. 2014-03-13 12:26:35 -07:00
John Benediktsson 272102e647 http.client: fix duplicate using. 2014-03-12 19:51:50 -07:00
John Benediktsson cb9c171383 http.client: remove unused word. 2014-03-12 19:39:15 -07:00
John Benediktsson 712be93989 http.client: remove http-get* and its friends, change http-request* and with-http-request* to not check response codes. 2014-03-12 19:39:15 -07:00
John Benediktsson 6a2d6971c6 http.client: adding http-request*. 2013-10-12 10:57:00 -07:00
John Benediktsson 278d210064 http.client: add variants to the docs. 2013-10-12 10:39:05 -07:00
John Benediktsson 18088e1aa3 http.client: adding variants of http-methods that check the response code. 2013-10-12 10:25:08 -07:00
John Benediktsson 9cc27f22f7 http.client: add quotation stack effects. 2013-09-23 15:47:31 -07:00
John Benediktsson d44cc17161 update docs for help.lint checks. 2013-08-24 11:39:31 -07:00
John Benediktsson b5484d33ba http.client: support urls without protocols (in addition to strings). 2013-07-15 10:28:28 -07:00
John Benediktsson 0555425861 http.client: default to http:// if not specified. 2013-07-15 09:30:22 -07:00
John Benediktsson 2526d3c982 Fix some copyrights, sorry "Your name". 2013-04-25 13:26:36 -07:00
Doug Coleman 8c19602ae9 assocs: Add of and ?of. Change all the things at once! Fixes #701. 2013-03-23 14:59:07 -07:00
John Benediktsson d7f9fe7600 http: only parse expires if non-empty. 2012-07-27 13:46:45 -07:00
John Benediktsson 4e72d80256 Using "same?" in more places. 2012-07-21 10:22:44 -07:00
Doug Coleman 32ff5f4b9b http: Use make 2012-07-19 17:52:43 -07:00
John Benediktsson 3ea37a93eb more H{ } make fixes. 2012-07-19 14:38:22 -07:00
John Benediktsson 1a73e79ef7 cleanup some use of with-scope. 2012-07-19 13:55:34 -07:00
John Benediktsson 88e0936618 more cleanup for H{ } make. 2012-07-19 11:39:56 -07:00
John Benediktsson a93328e8c7 http: using temp directory. 2012-06-18 12:33:07 -07:00
John Benediktsson 180ad0aabf fix some tests broken by the prepend change. 2012-05-29 16:58:58 -07:00
otoburb 7417d8f0c8 client-docs: Updated HTTP PUT documentation typos 2012-01-11 02:33:05 +00:00
Doug Coleman 94db86a6db Make "foo.private" require load foo instead.
Move require from vocabs.loader to vocabs. Update everything.
Fixes #201.
2011-11-02 11:50:03 -07:00
Slava Pestov 721d035901 http.server: closing socket without sending any text would hang the http.server. Fixes #311 2011-10-28 23:54:55 -07:00
John Benediktsson c8732657b7 Cleanup more lint warnings. 2011-10-16 13:01:58 -07:00
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