Crate spin_wasip3_http

Crate spin_wasip3_http 

Source
Expand description

Experimental Rust SDK for WASIp3 HTTP.

Modules§

body
Helpers for consuming an wasip3::http_compat::IncomingBody.

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.
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.

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.