# Ogre
Types for working with origins and relative paths.
For when the [stdlib uri type](https://hexdocs.pm/gleam_stdlib/gleam/uri.html#Uri) has too many optionals
## Usage
```gleam
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
```sh
gleam run # Run the project
gleam test # Run the tests
```
## Credit
Created for [EYG](https://eyg.run/), a new integration focused programming language.