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]

[src]

Get the path of this Uri.

[src]

Get the scheme of this Uri.

[src]

Get the authority of this Uri.

[src]

Get the host of this Uri.

[src]

Get the port of this Uri.

[src]

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

[src]

Returns whether this URI is in absolute-form.

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

Trait Implementations

impl Clone for Uri
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Hash for Uri
[src]

[src]

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

1.3.0
[src]

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.

[src]

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

impl PartialEq for Uri
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl PartialEq<str> for Uri
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

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

[src]

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

1.0.0
[src]

This method tests for !=.

impl Eq for Uri
[src]

impl AsRef<str> for Uri
[src]

[src]

Performs the conversion.

impl Default for Uri
[src]

[src]

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

impl Debug for Uri
[src]

[src]

Formats the value using the given formatter.

impl Display for Uri
[src]

[src]

Formats the value using the given formatter. Read more