Http module

read_all

procedure · 1 overloadsince 0.30.0Source

The rest of the body. The bytes live in the connection's own buffer and stay valid until the response has been written; copy them to keep them longer. Read as read: over the limit is a 413, and a declared length over the limit is refused without reading anything.

read_all :: (body: *Body) -> ([] u8, Http_Error)

The rest of the body. The bytes live in the connection's own buffer and stay valid until the response has been written; copy them to keep them longer. Read as read: over the limit is a 413, and a declared length over the limit is refused without reading anything.

Parameters

body: *Body

Returns

[] u8

See also