Skip to main content

Crate workflow_http

Crate workflow_http 

Source
Expand description

Minimal async HTTP client utilities for the workflow-rs workspace, providing simple GET helpers that work on both native and wasm32 targets.

Modules§

error
Error types returned by this crate.
prelude
Re-exports the crate’s commonly used types for convenient glob import.
result
Result type alias used throughout this crate.

Structs§

Request
Builder for an HTTP GET request, holding the target URL and optional headers before the request is sent.

Functions§

get
Performs a GET request to url and returns the response body as a string.
get_bytes
Performs a GET request to url and returns the response body as raw bytes.
get_json
Performs a GET request to url and deserializes the response body from JSON into T.