No matching definitions.

httpd/typed

src/httpd/typed.tur

U3 row-typed Request / Response surface (Track C, phase U3).

Since: U3

defstruct

TRequest

(defstruct TRequest [^&headers])

a phantom row-typed handle on a parsed HTTP request,

Since: U3

defstruct

TResponse

(defstruct TResponse [^&headers])

a phantom row-typed handle on an HTTP response,

Since: U3

defn

treq-of

(treq-of)

wrap an opaque `Request` as a row-typed `TRequest`. The

Since: U3

defn

treq-handle

(treq-handle)

unwrap a row-typed TRequest back to its opaque

defn

treq-method

(treq-method)

HTTP method ("GET", "POST", ...). Polymorphic over the

defn

treq-path

(treq-path)

request-target path (no query string). Since: U3

defn

treq-query

(treq-query)

raw query string after '?', or "". Since: U3

defn

treq-body

(treq-body)

request body bytes, or "". Since: U3

defn

treq-header

(treq-header)

look up a request header by name (case-insensitive).

defn

tresp-of

(tresp-of)

wrap an opaque `Response` as a row-typed `TResponse`. The

Since: U3

defn

tresp-handle

(tresp-handle)

unwrap a row-typed TResponse back to its opaque

defn

tresp-with-header

(tresp-with-header)

append a header (mutates the underlying Response

defn

tresp-with-body

(tresp-with-body)

replace the response body (mutates in place);

defn

tresp-with-status

(tresp-with-status)

replace the response status (mutates in place);

defn

tfree-response

(tfree-response)

release the underlying Response and all owned