Commit Graph

223 Commits (6480a46c1e274d6ca9612377167824a0d943fffd)

Author SHA1 Message Date
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