Http module

read_text

procedure · 1 overloadSource

The whole body as text, in memory from the context allocator (release it with free). A body longer than the request's max_response_size is a .TOO_LARGE error and is not read.

read_text :: (response: *Client_Response) -> (string, Client_Error)

The whole body as text, in memory from the context allocator (release it with free). A body longer than the request's max_response_size is a .TOO_LARGE error and is not read.

Parameters

response: *Client_Response

Returns

string

See also