Extensive rewrite of parsing routines, most parsable headers in

requests and entities are now parsed.  Furthermore the whole
request-entity handling has been changed to allow lazy parsing, parsed
entity headers, and flexible choice of entities.  This is all to
support the handling of MIME multipart entities, especially
multipart/form-data.  The current revision is a first cut, and some
further rewrites are needed.
This commit is contained in:
2001-03-27 14:00:34 +00:00
parent 384e68fd84
commit 5c57e50d07
8 changed files with 717 additions and 34 deletions

View File

@ -13,5 +13,13 @@
;;;;
;;;;
(defconstant +maximum-safe-http-method-length+ 80
"This defines the limit we impose on HTTP method names acceptable to
`get-method-symbol', in order to avoid interning huge stuff into the
keyword package, and thereby leaking non-negligible amounts of
memory.")
(defun get-method-symbol (method-string)
(when (> (length method-string) +maximum-safe-http-method-length+)
(error 'clash-error :code +http-code-bad-request+))
(intern method-string (symbol-package :initarg)))