Http module

send_chunk

procedure · 2 overloadssince 0.30.0Source

Sends data to the client now, as one chunk of the body. False when the client has gone or the write timed out: the producer should return.

send_chunk :: (stream: *Stream, data: [] u8) -> bool

Sends data to the client now, as one chunk of the body. False when the client has gone or the write timed out: the producer should return.

Parameters

stream: *Stream
data: [] u8

Returns

bool
send_chunk :: (stream: *Stream, text: string) -> bool

send_chunk for text.

Parameters

stream: *Stream
text: string

Returns

bool

See also