Struct rs_router::Request
[−]
[src]
pub struct Request<'a, 'b: 'a, 'c> { /* fields omitted */ }
Methods
impl<'a, 'b: 'a, 'c> Request<'a, 'b, 'c>
[src]
Methods from Deref<Target = HyperRequest<'a, 'b>>
fn set_read_timeout(&self, timeout: Option<Duration>) -> Result<(), Error>
Set the read timeout of the underlying NetworkStream.
fn downcast_ref<T>(&self) -> Option<&T> where
T: NetworkStream,
T: NetworkStream,
Get a reference to the underlying NetworkStream
.
fn ssl<T>(&self) -> Option<&T> where
T: NetworkStream,
T: NetworkStream,
Get a reference to the underlying Ssl stream, if connected over HTTPS.
This is actually just an alias for downcast_ref
.
fn deconstruct(
self
) -> (SocketAddr, Method, Headers, RequestUri, HttpVersion, HttpReader<&'a mut BufReader<&'b mut NetworkStream + 'static>>)
self
) -> (SocketAddr, Method, Headers, RequestUri, HttpVersion, HttpReader<&'a mut BufReader<&'b mut NetworkStream + 'static>>)
Deconstruct a Request into its constituent parts.
Trait Implementations
impl<'a, 'b: 'a, 'c> Deref for Request<'a, 'b, 'c>
[src]
type Target = HyperRequest<'a, 'b>
The resulting type after dereferencing
fn deref(&self) -> &Self::Target
The method called to dereference a value
impl<'a, 'b: 'a, 'c> DerefMut for Request<'a, 'b, 'c>
[src]
impl<'a, 'b: 'a, 'c> From<HyperRequest<'a, 'b>> for Request<'a, 'b, 'c>
[src]
fn from(x: HyperRequest<'a, 'b>) -> Self
Performs the conversion.