Enum uhttp_request_target::RequestTarget [] [src]

pub enum RequestTarget {
    AbsPath,
    AbsUri,
    Authority,
    ServerOptions,
}

A request target that appears in every HTTP request start line.

This gives a hint as to how the target should be interpreted but doesn't guarantee the matched string has well-formed syntax.

Variants

General form used for direct requests targeting a resource on the origin server.

Currently only used with the proxy protocol, but HTTP/1.1 servers must accept this form for other requests too.

Used with CONNECT in the proxy protocol.

Used for server-wide OPTIONS request.

Trait Implementations

impl Copy for RequestTarget
[src]

impl Clone for RequestTarget
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for RequestTarget
[src]

impl PartialEq for RequestTarget
[src]

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

This method tests for !=.

impl Debug for RequestTarget
[src]

Formats the value using the given formatter.

impl Hash for RequestTarget
[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 RequestTarget
[src]

The associated error which can be returned from parsing.

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