b9d107742530fae9aee086fece98c5c654de5b77
May need to do more in depth checks and optimisations may need to be removed if the core gleam compiler fixes the performance issues with pattern matching + capture. Possibly pattern matching may be better for smaller ranges but would need to do benchmarks to find out what the cut-off point is.
uri
Uri (RFC 3986) library for Gleam
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
Description
v2.0.4
Latest
Languages
Gleam
99.5%
JavaScript
0.5%