transparent_http

Package Version Hex Docs

Simple HTTP Client for low level use cases

Quick start

  1. Add transparent_http and a http client which uses gleam_http types
gleam add transparent_http gleam_httpc
  1. Create a client
import transparent_http
import gleam/httpc


let client = transparent_http.default(httpc.send, "")
  1. Send a request
let res = client
|> transparent_http.req(fn (req) {
    req
    |> request.set_host("https://gleam.run")
    |> request.set_path("/health")
})
Search Document