Skip to main content

Module http

Module http 

Source
Expand description

Make HTTP requests from inside your WASM handler.

Use this to call external APIs (Keycloak admin, third-party services, etc.) from your handler code.

Structs§

FetchRequest
A single request inside a fetch_many batch.
FetchResponse
Response from an HTTP request.

Functions§

delete
Make a DELETE request.
fetch
Make an HTTP request.
fetch_many
Make N HTTP requests concurrently from the host. Per-item errors are reported in the returned slot (other slots still succeed). Use this when you’d otherwise call fetch in a loop — sequential blocking fetches inside WASM are linear, the host fan-out is parallel.
get
Make a GET request.
patch
Make a PATCH request with a body.
post
Make a POST request with a body.
put
Make a PUT request with a body.