Struct generic_async_http_client::Request [−][src]
pub struct Request(_);
Expand description
Builds a HTTP request, poll it to query
Implementations
Add a JSON boby to the request
Add a form data boby to the request
Add query parameter to the request
pub fn set_header(
self,
name: impl TryInto<HeaderName, Error = Error>,
value: impl TryInto<HeaderValue, Error = Error>
) -> Result<Self, Error>
pub fn set_header(
self,
name: impl TryInto<HeaderName, Error = Error>,
value: impl TryInto<HeaderValue, Error = Error>
) -> Result<Self, Error>
Add a single header to the request If the map did have this key present, the new value is associated with the key
pub fn add_header(
self,
name: impl TryInto<HeaderName, Error = Error>,
value: impl TryInto<HeaderValue, Error = Error>
) -> Result<Self, Error>
pub fn add_header(
self,
name: impl TryInto<HeaderName, Error = Error>,
value: impl TryInto<HeaderValue, Error = Error>
) -> Result<Self, Error>
Add a single header to the request If the map did have this key present, the new value is pushed to the end of the list of values