transparent_http
Simple HTTP Client for low level use cases
Quick start
- Add
transparent_http
and a http client which usesgleam_http
types
gleam add transparent_http gleam_httpc
- Create a client
import transparent_http
import gleam/httpc
let client = transparent_http.default(httpc.send, "")
- Send a request
let res = client
|> transparent_http.req(fn (req) {
req
|> request.set_host("https://gleam.run")
|> request.set_path("/health")
})