Struct hyper::server::Request
[−]
[src]
pub struct Request { /* fields omitted */ }
A request bundles several parts of an incoming NetworkStream
, given to a Handler
.
Methods
impl Request
[src]
fn method(&self) -> &Method
The Method
, such as Get
, Post
, etc.
fn headers(&self) -> &Headers
The headers of the incoming request.
fn uri(&self) -> &RequestUri
The target request-uri for this request.
fn version(&self) -> &HttpVersion
The version of HTTP for this request.
fn remote_addr(&self) -> &SocketAddr
The remote socket address of this request
fn path(&self) -> Option<&str>
The target path of this Request.
fn query(&self) -> Option<&str>
The query string of this Request.
fn body(self) -> Body
Take the Body
of this Request
.
fn deconstruct(self) -> (Method, RequestUri, HttpVersion, Headers, Body)
Deconstruct this Request into its pieces.
Modifying these pieces will have no effect on how hyper behaves.