Struct uhttp_uri::HttpUri [] [src]

pub struct HttpUri<'a> {
    pub scheme: HttpScheme,
    pub authority: &'a str,
    pub resource: HttpResource<'a>,
}

Components in an HTTP Request Line URI.

Fields

HTTP scheme of request.

This is automatically parsed to an HttpScheme since RFC7230 only gives syntax for the two http schemes.

Authority for the URI's target resource.

This should typically be a domain name or IP address and may also contain a username and port.

Path and parameters for requested target resource.

Methods

impl<'a> HttpUri<'a>
[src]

Try to parse the given string into HttpUri components.

The string must contain no whitespace, as required by RFC7230§3.1.1.

Trait Implementations

impl<'a> Copy for HttpUri<'a>
[src]

impl<'a> Clone for HttpUri<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Eq for HttpUri<'a>
[src]

impl<'a> PartialEq for HttpUri<'a>
[src]

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

This method tests for !=.

impl<'a> Debug for HttpUri<'a>
[src]

Formats the value using the given formatter.

impl<'a> Hash for HttpUri<'a>
[src]

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

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

impl<'a> Display for HttpUri<'a>
[src]

Writes the URI in the format required by [RFC7230§2.7.1]/[RFC7230§2.7.2].

Formats the value using the given formatter. Read more