Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the rfc2388 Reference Manual, version 1.5, generated automatically by Declt version 3.0 "Montgomery Scott" on Tue Dec 22 14:54:54 2020 GMT+0.
• Introduction | What rfc2388 is all about | |
• Systems | The systems documentation | |
• Files | The files documentation | |
• Packages | The packages documentation | |
• Definitions | The symbols documentation | |
• Indexes | Concepts, functions, variables and data types |
This package contains an implementation of RFC 2388, which is used to process form data posted with HTTP POST method using enctype "multipart/form-data".
The main functions of interest are PARSE-MIME and PARSE-HEADER.
Use PARSE-MIME to parse MIME content. It can be given either a string or a stream. It returns a list of MIME parts. The second argument must be a boundary, which is a string that seperates MIME parts. See below how to obtain it.
PARSE-HEADER is used by PARSE-MIME internally, but you can use it to parse headers yourself. For instance, when data is posted to server using POST method, a header describing the content type is sent as well. Usually its content is application/x-www-form-urlencoded or something similar. But users may set it to multipart/form-data, with additional parameter named "boundary". This is how one would usually parse the posted data:
(let* ((header (parse-header <request-content-type> :value))
(boundary (or (assoc "boundary" (header-parameters header)
:test #'string-equal)
(error "Form data is missing a boundary: ~S"
<request-content-type>))))
(parse-mime <request-posted-content> boundary))
The :VALUE keyword parameter to PARSE-HEADER means that parsing should begin with header value, not name (because header name is "content-type" and the web server has already seperated them, at least in this scenario).
Next: Files, Previous: Introduction, Up: Top [Contents][Index]
The main system appears first, followed by any subsystem dependency.
• The rfc2388 system |
Janis Dzerins <jonis@latnet.lv>
Simplified BSD
Implementation of RFC 2388
Contains an implementation of RFC 2388, which is used to process form data posted with HTTP POST method using enctype "multipart/form-data".
1.5
rfc2388.asd (file)
Files are sorted by type and then listed depth-first from the systems components trees.
• Lisp files | ||
• Static files |
Next: Static files, Previous: Files, Up: Files [Contents][Index]
• The rfc2388.asd file | ||
• The rfc2388/rfc2388.lisp file | ||
• The rfc2388/packages.lisp file |
Next: The rfc2388/rfc2388․lisp file, Previous: Lisp files, Up: Lisp files [Contents][Index]
rfc2388.asd
rfc2388 (system)
Next: The rfc2388/packages․lisp file, Previous: The rfc2388․asd file, Up: Lisp files [Contents][Index]
packages.lisp (file)
rfc2388 (system)
rfc2388.lisp
Previous: The rfc2388/rfc2388․lisp file, Up: Lisp files [Contents][Index]
Previous: Lisp files, Up: Files [Contents][Index]
• The rfc2388/rfc2388.asd file |
Previous: Static files, Up: Static files [Contents][Index]
rfc2388 (system)
rfc2388.asd
Next: Definitions, Previous: Files, Up: Top [Contents][Index]
Packages are listed by definition order.
• The rfc2388 package |
packages.lisp (file)
common-lisp
Definitions are sorted by export status, category, package, and then by lexicographic order.
• Exported definitions | ||
• Internal definitions |
Next: Internal definitions, Previous: Definitions, Up: Definitions [Contents][Index]
• Exported functions | ||
• Exported generic functions |
Next: Exported generic functions, Previous: Exported definitions, Up: Exported definitions [Contents][Index]
Returns the Content-Type header of mime-part PART.
rfc2388.lisp (file)
rfc2388.lisp (file)
Find header by label from set of headers.
rfc2388.lisp (file)
Find header parameter by name from set of parameters.
rfc2388.lisp (file)
rfc2388.lisp (file)
rfc2388.lisp (file)
rfc2388.lisp (file)
rfc2388.lisp (file)
rfc2388.lisp (file)
rfc2388.lisp (file)
rfc2388.lisp (file)
Previous: Exported functions, Up: Exported definitions [Contents][Index]
Parses SOURCE and returs a single MIME header.
Header is a list of the form (NAME VALUE PARAMETERS), PARAMETERS is a list of (NAME . VALUE)
rfc2388.lisp (file)
Returns a MIME part header, or NIL, if there is no header. Header is terminated by CRLF.
Parses MIME entities, returning them as a list. Each element in the list is of form: (body headers), where BODY is the contents of MIME part, and HEADERS are all headers for that part. BOUNDARY is a string used to separate MIME entities.
rfc2388.lisp (file)
Previous: Exported definitions, Up: Definitions [Contents][Index]
• Internal functions |
Previous: Internal definitions, Up: Internal definitions [Contents][Index]
rfc2388.lisp (file)
rfc2388.lisp (file)
Return a copy of SEQUENCE which is EQUAL to SEQUENCE but not EQ.
SYS:SRC;CODE;SEQ.LISP (not found)
Return a copy of SEQUENCE which is EQUAL to SEQUENCE but not EQ.
SYS:SRC;CODE;SEQ.LISP (not found)
Return a copy of SEQUENCE which is EQUAL to SEQUENCE but not EQ.
SYS:SRC;CODE;SEQ.LISP (not found)
Returns true if CHAR is a linear-whitespace-char (LWSP-char). Either space or tab, in short.
rfc2388.lisp (file)
rfc2388.lisp (file)
rfc2388.lisp (file)
rfc2388.lisp (file)
Returns content-type which is parsed from STRING.
rfc2388.lisp (file)
Reads from STREAM up to the next boundary. Returns two values: read data (nil if DISCARD is true), and true if the boundary is not last (i.e., there’s more data).
rfc2388.lisp (file)
Returns the position of first non-linear-whitespace character in STRING bound by START and END.
rfc2388.lisp (file)
Returns content-type CT in string representation.
rfc2388.lisp (file)
Previous: Definitions, Up: Top [Contents][Index]
• Concept index | ||
• Function index | ||
• Variable index | ||
• Data type index |
Next: Function index, Previous: Indexes, Up: Indexes [Contents][Index]
Jump to: | F L R S |
---|
Jump to: | F L R S |
---|
Next: Variable index, Previous: Concept index, Up: Indexes [Contents][Index]
Jump to: | (
C F G H L M P R S U |
---|
Jump to: | (
C F G H L M P R S U |
---|
Next: Data type index, Previous: Function index, Up: Indexes [Contents][Index]
Previous: Variable index, Up: Indexes [Contents][Index]
Jump to: | P R S |
---|
Index Entry | Section | ||
---|---|---|---|
| |||
P | |||
Package, rfc2388 : | The rfc2388 package | ||
| |||
R | |||
rfc2388 : | The rfc2388 system | ||
rfc2388 : | The rfc2388 package | ||
| |||
S | |||
System, rfc2388 : | The rfc2388 system | ||
|
Jump to: | P R S |
---|