[][src]Crate auris

auris is an experimental URI parsing library

  • Uses only safe features in rust.
  • rfc2396 & rfc3986 compliant (incomplete)

Parses structure:

    foo://example.com:8042/over/there?name=ferret#nose
    \_/   \______________/\_________/ \_________/ \__/
     |           |            |            |        |
  scheme     authority       path        query   fragment

Usage

use auris::URI;

"postgres://user:password@host".parse::<URI<String>>();

"https://crates.io/crates/auris".parse::<URI<String>>();

Query strings

We also parse query strings into HashMaps:

"postgres://user:password@example.com/db?replication=true".parse::<URI<String>>();

In the case of duplicated query string tags the last one wins:

"scheme://host/path?a=1&a=2".parse::<URI<String>>();

Modules

parsers

Structs

Authority

Authority section of the URI

ParseError
URI

URI is the whole URI object

Enums

AurisParseErrorKind
Host
UserInfo

Make impossible authentication states unrepresentable