Skip to main content

Crate fetch_happen

Crate fetch_happen 

Source
Expand description

A comfortable wrapper for HTTP requests: the JavaScript fetch API on wasm, and a streaming reqwest client natively — one API for both.

Structs§

AbortController
AbortSignal
Client
Main client for making HTTP requests
RequestBuilder
A builder for HTTP requests
Response
A response from a fetch request. Headers are available immediately; the body streams from the socket as it is read.
StreamReader
A reader for streaming response bodies chunk by chunk

Enums§

Error
Errors that can occur when making a request
Method
HTTP methods
RequestMode
The RequestMode enum.

Functions§

get
Convenience function for making a GET request
post_json
Convenience function for making a POST request with JSON body

Type Aliases§

Result