Std.Http.Message
17 public declarations
- checkLength
&Array[(Str, Str)] -> Str -> Result[(), Std.Http.Message.MessageError]Whether a message's declared length matches the body it carried.
- decodeChunked
Str -> StrA chunked body read back into the bytes it framed.
- decodeChunkedBytes
&Bytes -> Int -> Result[Bytes, Std.Http.Message.MessageError]Remove chunk framing in octets, refusing truncated or malformed data.
- explain
&Std.Http.Message.MessageError -> StrA reader's failure explained in the terms a caller can report.
- MessageError
What stopped a message from being read.
- parseHead
Str -> Result[Std.Http.Request, Std.Http.Message.MessageError]A request read from text where the head has already been separated from the body.
- parseRequest
Str -> Result[Std.Http.Request, Std.Http.Message.MessageError]A request read from the text a connection carried.
- parseResponse
Str -> Result[Std.Http.Response, Std.Http.Message.MessageError]A response read from the text a connection carried.
- redirect
Int -> Str -> Std.Http.ResponseA redirect to a target, with the status a caller chooses.
- renderRequest
&Std.Http.Request -> StrA request written as the protocol writes it, head and body together.
- renderRequestBytes
&Std.Http.Request -> BytesA request written as the protocol writes it, as the exact bytes sent, so a
- renderResponse
&Std.Http.Response -> StrA response written as the protocol writes it.
- renderResponseBytes
&Std.Http.Response -> BytesSerialize binary payloads without a text or base64 conversion.
- respond
Int -> Str -> Str -> Std.Http.ResponseA response built from a status and a body, with the headers that describe it.
- respondBytes
Int -> Str -> &Bytes -> Std.Http.ResponseA response carrying bytes, with a status and a media type.
- respondEmpty
Int -> Std.Http.ResponseA response with no body, for the statuses that carry none.
- responseComplete
&Bytes -> &Std.Http.Method -> BoolWhether a complete response has arrived without waiting for its connection to close.
