wrpc_interface_http

Function try_http_to_request

source
pub fn try_http_to_request<E>(
    request: Request<impl Body<Data = Bytes, Error = E> + Send + 'static>,
) -> Result<(Request, impl Stream<Item = HttpBodyError<E>>)>
where E: Send + 'static,
Expand description

Attempt converting http::Request to [Request]. Values of path_with_query, scheme and authority will be taken from the request URI