API Reference › Http › Http.request
method

Http.request

Http.request(method, url, body) -> int

Starts a request with an explicit method ("GET", "PUT", "DELETE", …) and optional body.

Example

program Demo {
  entry {
    let h = Http.request("PUT", "https://example.com/item/1", "payload")
  }
}
← All symbols