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
AbsPath
General form used for direct requests targeting a resource on the origin server.
AbsUri
Currently only used with the proxy protocol, but HTTP/1.1 servers must accept this form for other requests too.
Authority
Used with CONNECT in the proxy protocol.
ServerOptions
Used for server-wide OPTIONS request.
Trait Implementations
impl Copy for RequestTarget
[src]
impl Clone for RequestTarget
[src]
fn clone(&self) -> RequestTarget
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for RequestTarget
[src]
impl PartialEq for RequestTarget
[src]
fn eq(&self, __arg_0: &RequestTarget) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Debug for RequestTarget
[src]
impl Hash for RequestTarget
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more