API Reference › Http › Http.free
method

Http.free

Http.free(handle) -> void

Releases a request handle and the resources it owns (the body copy and any retained response). Free each request once you are done reading it.

Example

program Demo {
  entry {
    let h = Http.get("https://example.com")
    if Http.poll(h) > 0 { Http.free(h) }
  }
}
← All symbols