Available on crate features
net
and http
only.Expand description
Wrapper around the fetch
API.
Example
let resp = Request::get("/path")
.send()
.await
.unwrap();
assert_eq!(resp.status(), 200);
Structs
- A wrapper around
web_sys::Headers
. - The Request Method (VERB)
- A sequence of URL query parameters, wrapping
web_sys::UrlSearchParams
. - The
Request
sent to the server - The [
Request
]’s response
Traits
- trait which allow consuming self into a raw web_sys::Response