method
Http.body_bytes
Http.body_bytes(handle, bytes, len) -> void
Sets a raw request body of len bytes (for binary uploads).
Example
program Demo {
entry {
let buf = bytes(4)
let h = Http.open("POST", "https://example.com/upload")
Http.body_bytes(h, buf, 4)
Http.send(h)
}
}