uri

Uri (RFC 3986) library for Gleam

Package Version Hex Docs

gleam add uri@1
import uri

pub fn main() {
  let uri = uri.parse("http://example.com:8080/path?q=1")
      |> result.unwrap(types.empty_uri)
  uri.normalise(uri) |> uri.to_string |> echo
}

Further documentation can be found at https://hexdocs.pm/uri.

Development

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