Module uri
URI component of request and response lines
This module primarily contains the Uri type which is a component of all
HTTP requests and also reexports this type at the root of the crate. A URI
is not always a "full URL" in the sense of something you'd type into a web
browser, but HTTP requests may only have paths on servers but may have full
schemes and hostnames on clients.
Examples
use Uri;
let uri = "/foo/bar?baz"..unwrap;
assert_eq!;
assert_eq!;
assert_eq!;
let uri = "https://www.rust-lang.org/install.html"..unwrap;
assert_eq!;
assert_eq!;
assert_eq!;
Structs
- InvalidUri An error resulting from a failed attempt to construct a URI.
- InvalidUriParts An error resulting from a failed attempt to construct a URI.
- Parts The various parts of a URI.
- Uri The URI component of a request.