Struct rustless::backend::Url [] [src]

pub struct Url { /* fields omitted */ }

HTTP/HTTPS URL type for Iron.

Methods

impl Url
[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

Create a Url from a rust-url Url.

Create a rust-url Url from a Url.

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

The host field of the URL, probably a domain.

The connection port.

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.

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.

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.

The URL query string.

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

The URL fragment.

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

Trait Implementations

impl Display for Url
[src]

Formats the value using the given formatter. Read more

impl Eq for Url
[src]

impl PartialEq<Url> for Url
[src]

impl Debug for Url
[src]

Formats the value using the given formatter.

impl Clone for Url
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl AsUrl for Url
[src]