wrpc_interface_http

Function try_wasmtime_to_outgoing_request

source
pub fn try_wasmtime_to_outgoing_request(
    req: Request<HyperOutgoingBody>,
    _: OutgoingRequestConfig,
) -> Result<(Request, RequestOptions, impl Stream<Item = HttpBodyError<ErrorCode>> + Send)>
Expand description

Attempt converting http::Request<wasmtime_wasi_http::body::HyperOutgoingBody> to bindings::wrpc::http::types::Request. Values of path_with_query, scheme and authority will be taken from the request URI.