Struct hyper::client::Request
[−]
[src]
pub struct Request { /* fields omitted */ }
A client request to a remote server.
Methods
impl Request
[src]
fn new(method: Method, url: Url) -> Request
Construct a new Request.
fn uri(&self) -> &RequestUri
Read the Request Url.
fn version(&self) -> &HttpVersion
Readthe Request Version.
fn headers(&self) -> &Headers
Read the Request headers.
fn method(&self) -> &Method
Read the Request method.
fn set_method(&mut self, method: Method)
Set the Method of this request.
fn headers_mut(&mut self) -> &mut Headers
Get a mutable reference to the Request headers.
fn set_uri(&mut self, uri: RequestUri)
Set the RequestUri
of this request.
fn set_version(&mut self, version: HttpVersion)
Set the HttpVersion
of this request.
fn set_body<T: Into<Body>>(&mut self, body: T)
Set the body of the request.