http-body

2019-08-13

HTTP POST data parser for Common Lisp

Upstream URL

github.com/fukamachi/http-body

Author

Eitaro Fukamachi

License

BSD 2-Clause

README.markdown

HTTP-Body

Build Status

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.

(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

Installation

(ql:quickload :http-body)

Author

  • Eitaro Fukamachi

Copyright

Copyright (c) 2014 Eitaro Fukamachi

License

Licensed under the BSD 2-Clause License.

Dependencies (11)

  • assoc-utils
  • babel
  • cl-ppcre
  • cl-utilities
  • fast-http
  • flexi-streams
  • jonathan
  • prove
  • quri
  • trivial-gray-streams
  • trivial-utf-8

Dependents (2)

  • GitHub
  • Quicklisp
  • Sponsor