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.