Body.Any #
A type-erased body backed by closures. Implements Http.Body and can be constructed from any
type that also implements Http.Body. Used as the default handler response body type.
A type-erased body handle. Operations are stored as closures, making it open to any body type
that implements Http.Body.
- recv : Internal.IO.Async.Async (Option Chunk)
Receives the next body chunk. Returns
noneat end-of-stream. - close : Internal.IO.Async.Async Unit
Closes the body stream.
- isClosed : Internal.IO.Async.Async Bool
Returns
truewhen the body stream is closed. - recvSelector : Internal.IO.Async.Selector (Option Chunk)
Selector that resolves when a chunk is available or EOF is reached.
- getKnownSize : Internal.IO.Async.Async (Option Length)
Returns the declared size.
- setKnownSize : Option Length → Internal.IO.Async.Async Unit
Sets the size of the body.
Instances For
@[implicit_reducible]
Equations
- One or more equations did not get rendered due to their size.