Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the http-body Reference Manual, version 0.1, generated automatically by Declt version 3.0 "Montgomery Scott" on Tue Dec 22 13:44:58 2020 GMT+0.
• Introduction | What http-body is all about | |
• Systems | The systems documentation | |
• Modules | The modules documentation | |
• Files | The files documentation | |
• Packages | The packages documentation | |
• Definitions | The symbols documentation | |
• Indexes | Concepts, functions, variables and data types |
HTTP-Body parses HTTP POST data and returns POST parameters. It supports application/x-www-form-urlencoded, application/json, and multipart/form-data.
http-body
package exports only a function parse
, which takes exact 2 arguments -- a string of Content-Type and a stream of HTTP POST data.
(http-body:parse "application/x-www-form-urlencoded"
body-stream)
;=> (("name" . "Eitaro"))
; T
It returns parsed parameters in an association list.
If the Content-Type of first argument isn't supported, it returns NIL
.
(http-body:parse "text/plain" body-stream)
;=> NIL
; NIL
(ql:quickload :http-body)
Copyright (c) 2014 Eitaro Fukamachi
Licensed under the BSD 2-Clause License.
Next: Modules, Previous: Introduction, Up: Top [Contents][Index]
The main system appears first, followed by any subsystem dependency.
• The http-body system |
Eitaro Fukamachi
BSD 2-Clause
HTTP POST data parser for Common Lisp
# HTTP-Body
[](https://travis-ci.org/fukamachi/http-body)
HTTP-Body parses HTTP POST data and returns POST parameters. It supports application/x-www-form-urlencoded, application/json, and multipart/form-data.
## Usage
‘http-body‘ package exports only a function ‘parse‘, which takes exact 2 arguments – a string of Content-Type and a stream of HTTP POST data.
“‘common-lisp
(http-body:parse "application/x-www-form-urlencoded"
body-stream)
;=> (("name" . "Eitaro"))
; T
“‘
It returns parsed parameters in an association list.
If the Content-Type of first argument isn’t supported, it returns ‘NIL‘.
“‘common-lisp
(http-body:parse "text/plain" body-stream)
;=> NIL
; NIL
“‘
## Installation
“‘common-lisp
(ql:quickload :http-body)
“‘
## Author
* Eitaro Fukamachi
## Copyright
Copyright (c) 2014 Eitaro Fukamachi
## License
Licensed under the BSD 2-Clause License.
0.1
http-body.asd (file)
src (module)
Modules are listed depth-first from the system components tree.
• The http-body/src module |
http-body (system)
src/
Files are sorted by type and then listed depth-first from the systems components trees.
• Lisp files |
Next: The http-body/src/http-body․lisp file, Previous: Lisp files, Up: Lisp files [Contents][Index]
http-body.asd
http-body (system)
Next: The http-body/src/multipart․lisp file, Previous: The http-body․asd file, Up: Lisp files [Contents][Index]
src (module)
src/http-body.lisp
parse (function)
*content-type-map* (special variable)
Next: The http-body/src/json․lisp file, Previous: The http-body/src/http-body․lisp file, Up: Lisp files [Contents][Index]
src (module)
src/multipart.lisp
multipart-parse (function)
Next: The http-body/src/urlencoded․lisp file, Previous: The http-body/src/multipart․lisp file, Up: Lisp files [Contents][Index]
util.lisp (file)
src (module)
src/json.lisp
json-parse (function)
Next: The http-body/src/util․lisp file, Previous: The http-body/src/json․lisp file, Up: Lisp files [Contents][Index]
util.lisp (file)
src (module)
src/urlencoded.lisp
urlencoded-parse (function)
Previous: The http-body/src/urlencoded․lisp file, Up: Lisp files [Contents][Index]
src (module)
src/util.lisp
parse-content-type (function)
Next: Definitions, Previous: Files, Up: Top [Contents][Index]
Packages are listed by definition order.
• The http-body-asd package | ||
• The http-body package | ||
• The http-body.multipart package | ||
• The http-body.json package | ||
• The http-body.urlencoded package | ||
• The http-body.util package |
Next: The http-body package, Previous: Packages, Up: Packages [Contents][Index]
http-body.asd
Next: The http-body․multipart package, Previous: The http-body-asd package, Up: Packages [Contents][Index]
http-body.lisp (file)
common-lisp
parse (function)
*content-type-map* (special variable)
Next: The http-body․json package, Previous: The http-body package, Up: Packages [Contents][Index]
multipart.lisp (file)
common-lisp
multipart-parse (function)
Next: The http-body․urlencoded package, Previous: The http-body․multipart package, Up: Packages [Contents][Index]
json.lisp (file)
common-lisp
json-parse (function)
Next: The http-body․util package, Previous: The http-body․json package, Up: Packages [Contents][Index]
urlencoded.lisp (file)
common-lisp
urlencoded-parse (function)
Previous: The http-body․urlencoded package, Up: Packages [Contents][Index]
util.lisp (file)
common-lisp
parse-content-type (function)
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 |
Previous: Exported definitions, Up: Exported definitions [Contents][Index]
util.lisp (file)
json.lisp (file)
multipart.lisp (file)
http-body.lisp (file)
util.lisp (file)
util.lisp (file)
urlencoded.lisp (file)
Previous: Exported definitions, Up: Definitions [Contents][Index]
• Internal special variables | ||
• Internal functions |
Next: Internal functions, Previous: Internal definitions, Up: Internal definitions [Contents][Index]
http-body.lisp (file)
Previous: Internal special variables, Up: Internal definitions [Contents][Index]
util.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 H L M |
---|
Jump to: | F H L M |
---|
Next: Variable index, Previous: Concept index, Up: Indexes [Contents][Index]
Jump to: | D F J M P S U |
---|
Jump to: | D F J M P S U |
---|
Next: Data type index, Previous: Function index, Up: Indexes [Contents][Index]
Jump to: | *
S |
---|
Index Entry | Section | ||
---|---|---|---|
| |||
* | |||
*content-type-map* : | Internal special variables | ||
| |||
S | |||
Special Variable, *content-type-map* : | Internal special variables | ||
|
Jump to: | *
S |
---|
Previous: Variable index, Up: Indexes [Contents][Index]
Jump to: | H P S |
---|
Jump to: | H P S |
---|