Available on crate feature
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 - A wrapper round
web_sys::Request
: an http request to be used with thefetch
API. - The [
Request
]’s response - A writable wrapper around
web_sys::Reponse
: an http response to be used with thefetch
API on a server side javascript runtime
Traits
- trait which allow consuming self into a raw web_sys::Response