Function sendBody [src]
Transfers the HTTP head over the connection and flushes.
See also:
sendBodyUnflushed
Prototype
pub fn sendBody(r: *Request, buffer: []u8) Writer.Error!http.BodyWriter
Parameters
r: *Request
buffer: []u8
Source
pub fn sendBody(r: *Request, buffer: []u8) Writer.Error!http.BodyWriter {
const result = try sendBodyUnflushed(r, buffer);
try r.connection.?.flush();
return result;
}