Function writeAll [src]
Write bytes to the server. The transfer_encoding field determines how data will be sent.
Must be called after send and before finish.
Prototype
pub fn writeAll(req: *Request, bytes: []const u8) WriteError!void
Parameters
req: *Request
bytes: []const u8
Possible Errors
Source
pub fn writeAll(req: *Request, bytes: []const u8) WriteError!void {
var index: usize = 0;
while (index < bytes.len) {
index += try write(req, bytes[index..]);
}
}