---
id: http-open
name: Http.open
category: http
kind: namespace-method
tokens: Http.open
sig: Http.open(method, url) -> int
tip: Open a request to configure before sending.
order: 3
ns: Http
member: open
---
Opens a request without sending it, so headers and a body can be added first with Http.set / Http.body, then dispatched with Http.send.
```ludic
program Demo {
entry {
let h = Http.open("POST", "https://example.com/api")
Http.set(h, "Authorization", "Bearer token")
Http.body(h, "{}")
Http.send(h)
}
}
```