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
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(),
}
}