Hana

statusResponse : U16 -> Response

Create a HTTP response with the required status code.

textResponse : U16, Str -> Response

Create a HTTP response with text content.

The content-type header will be set to text/plain.

jsonResponse : U16, List U8 -> Response

Create a HTTP response with JSON content.

The content-type header will be set to application/json.

pathSegments : Str -> List Str

Get the path segments from the request url.