Module gloo_net::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

The AbortSignal class.
The FormData class.
A wrapper around web_sys::Headers.
The ObserverCallback dictionary.
A sequence of URL query parameters, wrapping web_sys::UrlSearchParams.
The ReadableStream class.
A wrapper round web_sys::Request: an http request to be used with the fetch API.
The Request’s response

Enums

Valid request methods.
The ReferrerPolicy enum.
The RequestCache enum.
The RequestCredentials enum.
The RequestMode enum.
The RequestRedirect enum.
The ResponseType enum.