Struct generic_api_client::http::Request
source · pub struct Request { /* private fields */ }
Expand description
A request which can be executed with Client::execute()
.
Implementations§
source§impl Request
impl Request
sourcepub fn method_mut(&mut self) -> &mut Method
pub fn method_mut(&mut self) -> &mut Method
Get a mutable reference to the method.
sourcepub fn headers(&self) -> &HeaderMap<HeaderValue>
pub fn headers(&self) -> &HeaderMap<HeaderValue>
Get the headers.
sourcepub fn headers_mut(&mut self) -> &mut HeaderMap<HeaderValue>
pub fn headers_mut(&mut self) -> &mut HeaderMap<HeaderValue>
Get a mutable reference to the headers.
sourcepub fn timeout_mut(&mut self) -> &mut Option<Duration>
pub fn timeout_mut(&mut self) -> &mut Option<Duration>
Get a mutable reference to the timeout.
sourcepub fn version_mut(&mut self) -> &mut Version
pub fn version_mut(&mut self) -> &mut Version
Get a mutable reference to the http version.