Module http

Source
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)
QueryParams
A sequence of URL query parameters, wrapping web_sys::UrlSearchParams.
Request
The Request sent to the server
RequestBuilder
A wrapper round web_sys::Request: an http request to be used with the fetch API.
Response
The [Request]’s response
ResponseBuilder
A writable wrapper around web_sys::Reponse: an http response to be used with the fetch API on a server side javascript runtime

Traits§

IntoRawResponse
trait which allow consuming self into a raw web_sys::Response