Function flush [src]

Sends all buffered data across BodyWriter.http_protocol_output.

Prototype

pub fn flush(w: *BodyWriter) Error!void

Parameters

w: *BodyWriter

Possible Errors

WriteFailed Error

See the Writer implementation for detailed diagnostics.

Source

pub fn flush(w: *BodyWriter) Error!void { const out = w.http_protocol_output; switch (w.state) { .end, .none, .content_length, .chunk_len => return out.flush(), } }