method
Http.body
Http.body(handle, body) -> void
Sets a NUL-terminated string request body on an opened request.
Example
program Demo {
entry {
let h = Http.open("POST", "https://example.com/api")
Http.body(h, "{\"hi\":1}")
Http.send(h)
}
}