Trait conduit_utils::RequestDelegator
[−]
[src]
pub trait RequestDelegator { fn request(&self) -> &Request; fn mut_request(&mut self) -> &mut Request; fn http_version(&self) -> Version { ... } fn conduit_version(&self) -> Version { ... } fn method(&self) -> Method { ... } fn scheme(&self) -> Scheme { ... } fn host(&self) -> Host { ... } fn virtual_root(&self) -> Option<&str> { ... } fn path(&self) -> &str { ... } fn query_string(&self) -> Option<&str> { ... } fn remote_addr(&self) -> SocketAddr { ... } fn content_length(&self) -> Option<u64> { ... } fn headers(&self) -> &Headers { ... } fn body(&mut self) -> &mut Read { ... } fn extensions(&self) -> &Extensions { ... } fn mut_extensions(&mut self) -> &mut Extensions { ... } }
Required Methods
fn request(&self) -> &Request
fn mut_request(&mut self) -> &mut Request
Provided Methods
fn http_version(&self) -> Version
fn conduit_version(&self) -> Version
fn method(&self) -> Method
fn scheme(&self) -> Scheme
fn host(&self) -> Host
fn virtual_root(&self) -> Option<&str>
fn path(&self) -> &str
fn query_string(&self) -> Option<&str>
fn remote_addr(&self) -> SocketAddr
fn content_length(&self) -> Option<u64>
fn headers(&self) -> &Headers
fn body(&mut self) -> &mut Read
fn extensions(&self) -> &Extensions
fn mut_extensions(&mut self) -> &mut Extensions
Trait Implementations
impl<'a> Request for &'a mut RequestDelegator + 'a
[src]
fn http_version(&self) -> Version
The version of HTTP being used
fn conduit_version(&self) -> Version
The version of the conduit spec being used
fn method(&self) -> Method
The request method, such as GET, POST, PUT, DELETE or PATCH
fn scheme(&self) -> Scheme
The scheme part of the request URL
fn host(&self) -> Host
The host part of the requested URL
fn virtual_root(&self) -> Option<&str>
The initial part of the request URL's path that corresponds to a virtual root. This allows an application to have a virtual location that consumes part of the path. Read more
fn path(&self) -> &str
The remainder of the path.
fn query_string(&self) -> Option<&str>
The portion of the request URL that follows the "?"
fn remote_addr(&self) -> SocketAddr
The remote IP address of the client or the last proxy that sent the request. Read more
fn content_length(&self) -> Option<u64>
The byte-size of the body, if any
fn headers(&self) -> &Headers
The request's headers, as conduit::Headers.
fn body(&mut self) -> &mut Read
A Reader for the body of the request
fn extensions(&self) -> &Extensions
A readable map of extensions
fn mut_extensions(&mut self) -> &mut Extensions
A mutable map of extensions