Commit Graph

33 Commits

Author SHA1 Message Date
vibr 0de6fe79b4 replace calls of HTTP-URL->STRING (relict of old URL parser)
with calls of HTTP-URL->URL-STRING
2005-04-06 11:44:28 +00:00
vibr 44100cbf5e Added type NO-BODY for responses which must not contain a message-body
(201, 304, 404). Added export of type-predicate no-body?.  Adapted
SEND-HTTP-RESPONSE to check for no-body responses. Extended
MAKE-ERROR-RESPONSE to make responses 201, 304, 404.
2004-08-15 11:03:28 +00:00
vibr 96f0ae41d5 -move XHTML stuff from responses.scm to htmlout.scm
-don't use WRITE-STRING with \n (\n within strings is not in R5RS),
instead use FORMAT with ~%
-use EMIT-PROLOG and EMIT-TAG from htmlout.scm
2004-08-13 15:37:31 +00:00
vibr 4d7f10960c fix typo 2004-08-11 19:38:16 +00:00
vibr 5f64e72cd0 make-error-response:
more meaningful error description: show parsed uri
2004-08-11 14:48:11 +00:00
vibr f22f43ccd1 make-error-response:
use stuff in req where req isn't #f
2004-08-11 10:17:14 +00:00
vibr a3dd880c7a +catch calls of make-error-response with too few arguments 2004-08-10 14:26:50 +00:00
vibr 7c7be57a22 changes to make-error-response:
(1)no special treatment of first "optional" argument
- rationale: a different number of args is required depending on the
specific error code

(2)use close-html to write out all _effectively_ optional args

(3)generated html-pages are valid XHTML 1.0 Strict

(4)require header Allow for 405 errors

(5)more exact descriptions of errors in generated html-pages

TODO: handle calls of make-error-response with too little args
2004-07-30 22:25:03 +00:00
vibr 5e14a326b9 adapt make-error-response:
- no URI header field in 1.1
- new 30x status codes in 1.1
2004-07-29 16:08:30 +00:00
vibr f96d93b355 re-commit revision 1.22, this time to branch http-1-1 2004-05-27 14:47:46 +00:00
vibr e4a887d491 Revert last commit. 2004-05-24 15:54:58 +00:00
vibr a2a656ad99 1.0->1.1: updated status codes 2004-05-24 15:42:13 +00:00
vibr 1bd77d4b10 added comments 2004-05-17 16:42:45 +00:00
sperber baa9486488 Make MAKE-ERROR-RESPONSE work for "method not allowed" responses. 2003-04-22 13:49:49 +00:00
sperber 44322977fc Add HTTPD-INPUT-RESPONSE response values. 2003-02-06 15:05:15 +00:00
interp 7055289412 Add comment to MAKE-REDIRECT-RESPONSE. 2003-01-24 15:34:37 +00:00
sperber 30062d25df Add RFC822-TIME->STRING to RFC 822 and use that instead of the old and
broken code that was part of the Web server.
2003-01-21 12:45:54 +00:00
mainzelm 06121b3972 Added number->status-code. 2003-01-15 13:37:05 +00:00
sperber 9dac2674b4 Introduce new response type :HTTP-NPH-RESPONSE for nph-... CGI
scripts.
2003-01-14 13:23:29 +00:00
sperber 722135a77e Remove obsolete comment. 2003-01-10 13:30:36 +00:00
sperber 5880441b02 Add implementation of NAME->STATUS-CODE.
Tag export of STATUS-CODE as :SYNTAX.
2003-01-10 09:57:41 +00:00
sperber 86b0639a7f Rename MAKE-HTTP-ERROR-RESPONSE -> MAKE-ERROR-RESPONSE to be
consistent with MAKE-RESPONSE.
2003-01-10 09:52:35 +00:00
sperber 0754b74963 Replace integer HTTP status codes by finite record type instances. 2003-01-09 15:05:30 +00:00
sperber 186e9de56c Streamline structure declarations
- remove some more uses of Olin records
- remove uses of BIG-SCHEME/BIG-UTIL
- subset all uses of SRFI 1, 13, 14
2003-01-07 12:16:33 +00:00
sperber 641b8129ba Renamed REQUEST:xxx to REQUEST-xxx. 2002-11-29 14:49:22 +00:00
interp 4d7d5b08cd Don't just say "#f" if you don't have an adminstrator's mail address. Be
explicit.
2002-11-03 14:41:43 +00:00
interp 80257c0822 make more pleasent error messages 2002-09-03 12:45:39 +00:00
interp ff56fa6ec1 Add redirection feature to web-server: If the handler returns with the
return code HTTP-STATUS/REDIRECT, the server creates a new request out of
the redirection response and recalls the handler to serve the request.
You can use MAKE-REDIRECTION-RESPONSE to create this special response.
2002-09-02 13:42:10 +00:00
interp 62b3307fb2 * new response body: :HTTP-READER-WRITER-BODY
* hand over SOCKET:INPORT to SEND-HTTP-RESPONSE
* apply this to seval-handler
2002-08-28 16:44:07 +00:00
sperber c97bbfc1db Move MAKE-HTTP-ERROR-RESPONSE from HTTPD-CORE to HTTPD-RESPONSES.
Elide REALLY-MAKE-HTTP-ERROR-RESPONSE in the process.
2002-08-27 09:39:05 +00:00
sperber aeeeea79c1 Add copyright notice. 2002-08-27 09:03:22 +00:00
sperber 6f7cd467f1 Adopt proper RFC terminology:
"reply" -> "response"
"reply code" -> "status code"
2002-08-26 09:59:14 +00:00
sperber d1438eb4a8 Rework the API of path handlers:
Path handlers must now return a response object similar to the
response objects of the PLT web server, encapsulating headers, mime
type, status code, and so on.

A response object in turn can contain an encoding of a body.  The only
presently supported body type is a procedure which just prints the
body.

Other changes:
- split file-dir-handler.scm out from handlers.scm
- moved the ICON-NAME constructor parameters for file handlers to the
  options
- removed input/output port redirections and work with paths
  explicitly
2002-08-26 09:46:11 +00:00