(chibi net servlet)

Library for http and cgi servlets.

(upload-headers upload)

(upload-content upload)

(upload->string upload)

(upload->bytevector upload)

(upload->sexp upload)

(upload-input-port upload)

(upload-binary-input-port upload)

(upload-save upload path)

(request-uri-string request)

(request-path request)

(copy-request r)

(request-with-uri request uri)

(request-param request name . o)

(request-param-list request name)

(request-upload request name . o)

(request-upload-list request name)

(make-request method path version in out sock addr)

(make-cgi-request)

(servlet-respond request status msg . o)

Respond with a numeric status, string message and optional headers.

(servlet-write request str . o)

Write the contents of a string to the request. If no status has been sent, assume a default of 200.

(servlet-parse-body! request . o)

(make-status-servlet status msg . o)

servlet-handler

(servlet-run servlet)