pub enum RequestTarget {
    Origin(String),
    Absolute(String),
    Authority(String),
    Asterisk,
}Expand description
Variants§
Origin(String)
Origin form.
Absolute(String)
absolute-form = absolute-URI
GET http://www.example.org/pub/WWW/TheProject.html HTTP/1.1Authority(String)
authority-form = uri-host ":" port
CONNECT www.example.com:80 HTTP/1.1Asterisk
Asterisk form.
asterisk-form = "*"
OPTIONS * HTTP/1.1Implementations§
Source§impl RequestTarget
 
impl RequestTarget
Sourcepub fn try_from_slice(slice: &[u8]) -> Result<Self, ParseRequestTarget>
 
pub fn try_from_slice(slice: &[u8]) -> Result<Self, ParseRequestTarget>
Parse request target from slice.
Trait Implementations§
Source§impl Clone for RequestTarget
 
impl Clone for RequestTarget
Source§fn clone(&self) -> RequestTarget
 
fn clone(&self) -> RequestTarget
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreAuto Trait Implementations§
impl Freeze for RequestTarget
impl RefUnwindSafe for RequestTarget
impl Send for RequestTarget
impl Sync for RequestTarget
impl Unpin for RequestTarget
impl UnwindSafe for RequestTarget
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more