Skip to main content

Crate spin_wasip3_http

Crate spin_wasip3_http 

Source
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§

FromRequest
A trait for constructing a value from a wasip3::http::types::Request.
FromResponse
A trait for constructing a value from a wasip3::http::types::Response.
IncomingMessage
Internal trait representing a readable inbound HTTP message.
IntoRequest
A trait for any type that can be converted into a wasip3::http::types::Request.
IntoResponse
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 future to get executed concurrently with the currently-running async computation.

Type Aliases§

EmptyBody
A body type representing an empty payload.
FullBody
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::Result that uses Error as the default error type.