Module fetch

Source
Expand description

Service to send HTTP-request to a server.

Re-exports§

pub use http::HeaderMap;
pub use http::Method;
pub use http::Request;
pub use http::Response;
pub use http::StatusCode;
pub use http::Uri;

Structs§

FetchOptions
Init options for fetch() function call. https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch
FetchService
A service to fetch resources.
FetchTask
A handle to control sent requests. Can be canceled with a Task::cancel call.

Enums§

Cache
Type to set cache for fetch.
Credentials
Type to set credentials for fetch.
Mode
Type to set mode for fetch.
Redirect
Type to set redirect behaviour for fetch.
Referrer
Type to set referrer for fetch.
ReferrerPolicy
Type to set referrer policy for fetch.