pub async fn send(request: impl IntoRequest) -> Result<Response, ErrorCode>Expand description
Sends an HTTP request and returns the corresponding wasip3::http::types::Response.
This function converts the provided value into a wasip3::http::types::Request using the
IntoRequest trait, dispatches it to the WASI HTTP handler, and awaits
the resulting response. It provides a convenient high-level interface for
issuing HTTP requests within a WASI environment.