Struct easy_http_request::HttpRequest [−][src]
pub struct HttpRequest<QK = String, QV = String, BK = String, BV = String, HK = String, HV = String> where
QK: Eq + Hash + AsRef<str>,
QV: AsRef<str>,
BK: Eq + Hash + AsRef<str>,
BV: AsRef<str>,
HK: Eq + Hash + AsRef<str>,
HV: AsRef<str>, { pub method: HttpRequestMethod, pub url: Url, pub query: Option<HashMap<QK, QV>>, pub body: Option<HttpRequestBody<BK, BV>>, pub headers: Option<HashMap<HK, HV>>, pub options: HttpRequestOptions, }
Expand description
The http request sender. See DefaultHttpRequest or StaticHttpRequest.
Fields
method: HttpRequestMethodurl: Urlquery: Option<HashMap<QK, QV>>body: Option<HttpRequestBody<BK, BV>>headers: Option<HashMap<HK, HV>>options: HttpRequestOptionsImplementations
pub fn get_from_url_str<S: AsRef<str>>(
url: S
) -> Result<HttpRequest<QK, QV, BK, BV, HK, HV>, HttpRequestError>[src]pub fn post_from_url_str<S: AsRef<str>>(
url: S
) -> Result<HttpRequest<QK, QV, BK, BV, HK, HV>, HttpRequestError>[src]pub fn put_from_url_str<S: AsRef<str>>(
url: S
) -> Result<HttpRequest<QK, QV, BK, BV, HK, HV>, HttpRequestError>[src]pub fn delete_from_url_str<S: AsRef<str>>(
url: S
) -> Result<HttpRequest<QK, QV, BK, BV, HK, HV>, HttpRequestError>[src]pub fn head_from_url_str<S: AsRef<str>>(
url: S
) -> Result<HttpRequest<QK, QV, BK, BV, HK, HV>, HttpRequestError>[src]Send a request and drop this sender.
Send a request and preserve this sender so that it can be used again.
Trait Implementations
Auto Trait Implementations
impl<QK, QV, BK, BV, HK, HV> RefUnwindSafe for HttpRequest<QK, QV, BK, BV, HK, HV> where
BK: RefUnwindSafe,
BV: RefUnwindSafe,
HK: RefUnwindSafe,
HV: RefUnwindSafe,
QK: RefUnwindSafe,
QV: RefUnwindSafe, impl<QK, QV, BK, BV, HK, HV> Send for HttpRequest<QK, QV, BK, BV, HK, HV> where
BK: Send,
BV: Send,
HK: Send,
HV: Send,
QK: Send,
QV: Send, impl<QK, QV, BK, BV, HK, HV> Sync for HttpRequest<QK, QV, BK, BV, HK, HV> where
BK: Sync,
BV: Sync,
HK: Sync,
HV: Sync,
QK: Sync,
QV: Sync, impl<QK, QV, BK, BV, HK, HV> Unpin for HttpRequest<QK, QV, BK, BV, HK, HV> where
BK: Unpin,
BV: Unpin,
HK: Unpin,
HV: Unpin,
QK: Unpin,
QV: Unpin, impl<QK, QV, BK, BV, HK, HV> UnwindSafe for HttpRequest<QK, QV, BK, BV, HK, HV> where
BK: UnwindSafe,
BV: UnwindSafe,
HK: UnwindSafe,
HV: UnwindSafe,
QK: UnwindSafe,
QV: UnwindSafe, Blanket Implementations
Mutably borrows from an owned value. Read more