Struct iron::Url [] [src]

pub struct Url { /* fields omitted */ }

HTTP/HTTPS URL type for Iron.

Methods

impl Url
[src]

[src]

Create a URL from a string.

The input must be a valid URL with a special scheme for this to succeed.

HTTP and HTTPS are special schemes.

See: http://url.spec.whatwg.org/#special-scheme

[src]

Create a Url from a rust-url Url.

[src]

Deprecated since 0.4.1

: use into from the Into trait instead

Create a rust-url Url from a Url.

[src]

The lower-cased scheme of the URL, typically "http" or "https".

[src]

The host field of the URL, probably a domain.

[src]

The connection port.

[src]

The URL path, the resource to be accessed.

A non-empty vector encoding the parts of the URL path. Empty entries of "" correspond to trailing slashes.

[src]

The URL username field, from the userinfo section of the URL.

None if the @ character was not part of the input OR if a blank username was provided. Otherwise, a non-empty string.

[src]

The URL password field, from the userinfo section of the URL.

None if the @ character was not part of the input OR if a blank password was provided. Otherwise, a non-empty string.

[src]

The URL query string.

None if the ? character was not part of the input. Otherwise, a possibly empty, percent encoded string.

[src]

The URL fragment.

None if the # character was not part of the input. Otherwise, a possibly empty, percent encoded string.

Trait Implementations

impl PartialEq for Url
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for Url
[src]

impl Clone for Url
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Url
[src]

[src]

Formats the value using the given formatter.

impl Display for Url
[src]

[src]

Formats the value using the given formatter. Read more

impl Into<Url> for Url
[src]

[src]

Performs the conversion.

impl AsRef<Url> for Url
[src]

[src]

Performs the conversion.

impl AsMut<Url> for Url
[src]

[src]

Performs the conversion.

impl FromStr for Url
[src]

The associated error which can be returned from parsing.

[src]

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