httpd/typed
U3 row-typed Request / Response surface (Track C, phase U3).
Since: U3
TRequest
(defstruct TRequest [^&headers])
a phantom row-typed handle on a parsed HTTP request,
Since: U3
TResponse
(defstruct TResponse [^&headers])
a phantom row-typed handle on an HTTP response,
Since: U3
treq-of
(treq-of)
wrap an opaque `Request` as a row-typed `TRequest`. The
Since: U3
treq-handle
(treq-handle)
unwrap a row-typed TRequest back to its opaque
treq-method
(treq-method)
HTTP method ("GET", "POST", ...). Polymorphic over the
treq-path
(treq-path)
request-target path (no query string). Since: U3
treq-query
(treq-query)
raw query string after '?', or "". Since: U3
treq-body
(treq-body)
request body bytes, or "". Since: U3
treq-header
(treq-header)
look up a request header by name (case-insensitive).
tresp-of
(tresp-of)
wrap an opaque `Response` as a row-typed `TResponse`. The
Since: U3
tresp-handle
(tresp-handle)
unwrap a row-typed TResponse back to its opaque
tresp-with-header
(tresp-with-header)
append a header (mutates the underlying Response
tresp-with-body
(tresp-with-body)
replace the response body (mutates in place);
tresp-with-status
(tresp-with-status)
replace the response status (mutates in place);
tfree-response
(tfree-response)
release the underlying Response and all owned