method
Http.body_len
Http.body_len(handle) -> int
Returns the length of the response body in bytes.
Example
program Demo {
entry {
let h = Http.get("https://example.com")
if Http.poll(h) > 0 { print(Http.body_len(h)) }
}
}Http.body_len(handle) -> int
Returns the length of the response body in bytes.
program Demo {
entry {
let h = Http.get("https://example.com")
if Http.poll(h) > 0 { print(Http.body_len(h)) }
}
}