A HTTP response waiting to be sent.
[/ <----------------------------------- \]
Order of operations: accept -> wait -> do [ -> write -> finish][ -> reset /] \ -> read /
Functions
fn finish(res: *Response) FinishError!void
Finish the body of a request. This notifies the server that you have no more dat…
Finish the body of a request. This notifies the server that you have no more data to send.
fn reset(res: *Response) ResetState
Reset this response to its initial state. This must be called before handling a …
Reset this response to its initial state. This must be called before handling a second request on the same connection.
fn write(res: *Response, bytes: []const u8) WriteError!usize
Write
bytes
to the server. Thetransfer_encoding
request header determines h…Write
bytes
to the server. Thetransfer_encoding
request header determines how data will be sent.
Values
DoError | type | |
FinishError | type | |
ReadError | type | |
Reader | undefined | |
TransferReadError | type | |
TransferReader | undefined | |
WaitError | type | |
WriteError | type | |
Writer | undefined |