Enum rocket::http::hyper::RequestUri [−][src]
Expand description
The Request-URI of a Request’s StartLine.
From Section 5.3, Request Target:
Once an inbound connection is obtained, the client sends an HTTP request message (Section 3) with a request-target derived from the target URI. There are four distinct formats for the request-target, depending on both the method being requested and whether the request is to a proxy.
request-target = origin-form / absolute-form / authority-form / asterisk-form
Variants
AbsolutePath(String)The most common request target, an absolute path and optional query.
For example, the line GET /where?q=now HTTP/1.1 would parse the URI
as AbsolutePath("/where?q=now".to_string()).
AbsoluteUri(Url)An absolute URI. Used in conjunction with proxies.
When making a request to a proxy, other than a CONNECT or server-wide OPTIONS request (as detailed below), a client MUST send the target URI in absolute-form as the request-target.
An example StartLine with an AbsoluteUri would be
GET http://www.example.org/pub/WWW/TheProject.html HTTP/1.1.
Authority(String)The authority form is only for use with CONNECT requests.
An example StartLine: CONNECT www.example.com:80 HTTP/1.1.
The star is used to target the entire server, instead of a specific resource.
This is only used for a server-wide OPTIONS request.
Trait Implementations
impl Clone for RequestUri[src]
impl Clone for RequestUri[src]pub fn clone(&self) -> RequestUri[src]
pub fn clone(&self) -> RequestUri[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for RequestUri[src]
impl Debug for RequestUri[src]impl Display for RequestUri[src]
impl Display for RequestUri[src]impl FromStr for RequestUri[src]
impl FromStr for RequestUri[src]impl PartialEq<RequestUri> for RequestUri[src]
impl PartialEq<RequestUri> for RequestUri[src]pub fn eq(&self, other: &RequestUri) -> bool[src]
pub fn eq(&self, other: &RequestUri) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
pub fn ne(&self, other: &RequestUri) -> bool[src]
pub fn ne(&self, other: &RequestUri) -> bool[src]This method tests for !=.
impl StructuralPartialEq for RequestUri[src]
Auto Trait Implementations
impl RefUnwindSafe for RequestUri
impl Send for RequestUri
impl Sync for RequestUri
impl Unpin for RequestUri
impl UnwindSafe for RequestUri
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> IntoCollection<T> for T[src]
impl<T> IntoCollection<T> for T[src]pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>, [src]
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>, [src]Converts self into a collection.
pub fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
F: FnMut(T) -> U,
A: Array<Item = U>, [src]
F: FnMut(T) -> U,
A: Array<Item = U>,
impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,