Ogre

Types for working with origins and relative paths. For when the stdlib uri type has too many optionals

Usage

let origin = case env {
  Prod -> origin.https("api.example.com")
  Dev | Test -> origin.Origin(http.Http,"localhost", Some(1234))
}
let request = origin.to_request(origin)
  |> request.set_path("/operation")

Development

gleam run   # Run the project
gleam test  # Run the tests

Credit

Created for EYG, a new integration focused programming language.

Search Document