Struct hyper::Uri [] [src]

pub struct Uri { /* fields omitted */ }

The Request-URI of a Request's StartLine.

From Section 5.3, Request Target:

Once an inbound connection is obtained, the client sends an HTTP request message (Section 3) with a request-target derived from the target URI. There are four distinct formats for the request-target, depending on both the method being requested and whether the request is to a proxy.

request-target = origin-form
               / absolute-form
               / authority-form
               / asterisk-form

Uri explanations

abc://username:password@example.com:123/path/data?key=value&key2=value2#fragid1
|-|   |-------------------------------||--------| |-------------------| |-----|
 |                  |                       |               |              |
scheme          authority                 path            query         fragment

Methods

impl Uri
[src]

Get the path of this Uri.

Get the scheme of this Uri.

Get the authority of this Uri.

Get the host of this Uri.

Get the port of this Uri.

Get the query string of this Uri, starting after the ?.

Returns whether this URI is in absolute-form.

An example of absolute form is https://hyper.rs.

Trait Implementations

impl Clone for Uri
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for Uri
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl FromStr for Uri
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl PartialEq for Uri
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> PartialEq<&'a str> for Uri
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Uri
[src]

impl AsRef<str> for Uri
[src]

Performs the conversion.

impl Default for Uri
[src]

Returns the "default value" for a type. Read more

impl Debug for Uri
[src]

Formats the value using the given formatter.

impl Display for Uri
[src]

Formats the value using the given formatter. Read more