30 lines
		
	
	
		
			583 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			583 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
 | 
						|
# uri
 | 
						|
 | 
						|
Uri (RFC 3986) library for Gleam
 | 
						|
 | 
						|
[](https://hex.pm/packages/gluri)
 | 
						|
[](https://hexdocs.pm/gluri/)
 | 
						|
 | 
						|
```sh
 | 
						|
gleam add uri@1
 | 
						|
```
 | 
						|
```gleam
 | 
						|
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
 | 
						|
 | 
						|
```sh
 | 
						|
gleam run   # Run the project
 | 
						|
gleam test  # Run the tests
 | 
						|
```
 |