Struct reqwest::Request
[−]
[src]
pub struct Request { /* fields omitted */ }
A request which can be executed with Client::execute()
.
Methods
impl Request
[src]
fn new(method: Method, url: Url) -> Self
[src]
Constructs a new request.
fn method(&self) -> &Method
[src]
Get the method.
fn method_mut(&mut self) -> &mut Method
[src]
Get a mutable reference to the method.
fn url(&self) -> &Url
[src]
Get the url.
fn url_mut(&mut self) -> &mut Url
[src]
Get a mutable reference to the url.
fn headers(&self) -> &Headers
[src]
Get the headers.
fn headers_mut(&mut self) -> &mut Headers
[src]
Get a mutable reference to the headers.
fn body(&self) -> Option<&Body>
[src]
Get the body.
fn body_mut(&mut self) -> &mut Option<Body>
[src]
Get a mutable reference to the body.