package tiny_httpd
Module Tiny_httpd.RequestSource
Source
type 'body t = {meth : Meth.t;host : string;headers : Headers.t;path : string;path_components : string list;query : (string * string) list;body : 'body;
}A request with method, path, host, headers, and a body, sent by a client.
The body is polymorphic because the request goes through several transformations. First it has no body, as only the request and headers are read; then it has a stream body; then the body might be entirely read as a string via read_body_full.
Pretty print the request and its body
Pretty print the request without its body
Limit the body size to max_size bytes, or return a 413 error.
Read the whole body into a string. Potentially blocking.