Gareth Pendleton b9d1077425 perf: Revert back to pattern matching for ranges
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.
2025-10-03 10:55:48 +01:00
2025-09-06 23:51:50 +01:00
2025-09-22 11:46:34 +01:00
2025-09-22 11:53:13 +01:00
2025-09-06 23:46:20 +01:00
2025-09-16 09:58:15 +01:00
2025-09-09 13:39:04 +01:00

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
Description
URI (RFC 3986) library for Gleam
Readme Apache-2.0 134 KiB
v2.0.4 Latest
2025-10-27 19:19:06 +00:00
Languages
Gleam 99.5%
JavaScript 0.5%