Expand description
Experimental Rust SDK for WASIp3 HTTP.
Re-exports§
pub use wasip3::wit_bindgen;
Modules§
- body
- Helpers for consuming an
wasip3::http_compat::IncomingBody. - wit_
future - wit_
stream
Enums§
- Error
- The error type used for HTTP operations within the WASI environment.
Traits§
- From
Request - A trait for constructing a value from a
wasip3::http::types::Request. - From
Response - A trait for constructing a value from a
wasip3::http::types::Response. - Incoming
Message - Internal trait representing a readable inbound HTTP message.
- Into
Request - A trait for any type that can be converted into a
wasip3::http::types::Request. - Into
Response - A trait for any type that can be converted into a
wasip3::http::types::Response.
Functions§
- send
- Sends an HTTP request and returns the corresponding
wasip3::http::types::Response. - spawn
- Spawn the provided
futureto get executed concurrently with the currently-running async computation.
Type Aliases§
- Empty
Body - A body type representing an empty payload.
- Full
Body - A body type representing a complete, in-memory payload.
- Request
- A type alias for an HTTP request with a customizable body type.
- Response
- A type alias for an HTTP response with a customizable body type.
- Result
- A alias for
std::result::Resultthat usesErroras the default error type.