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§
- Headers
- A wrapper around
web_sys::Headers
. - Method
- The Request Method (VERB)
- Query
Params - A sequence of URL query parameters, wrapping
web_sys::UrlSearchParams
. - Request
- The
Request
sent to the server - Request
Builder - A wrapper round
web_sys::Request
: an http request to be used with thefetch
API. - Response
- The [
Request
]’s response - Response
Builder - A writable wrapper around
web_sys::Reponse
: an http response to be used with thefetch
API on a server side javascript runtime
Traits§
- Into
RawResponse - trait which allow consuming self into a raw web_sys::Response