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 operation =
operation.get("/posts")
|> operation.set_query([#("user",user_id)])
let request = operation.to_request(operation, origin)
Development
gleam run # Run the project
gleam test # Run the tests
Credit
Created for EYG, a new integration focused programming language.