Skip to main content

from_http_response

Function from_http_response 

Source
pub async fn from_http_response<B>(
    response: Response<B>,
) -> Result<Response, Box<dyn Error + Sync + Send>>
where B: Body<Data = Bytes> + Send + 'static, <B as Body>::Error: Into<Box<dyn Error + Sync + Send>>,
Available on crate feature tower only.
Expand description

An http::Response as an rws response. A body that’s gRPC, or of unknown or large size, streams through stream_pipe (polled on rws-tower), its trailers in Response::trailers; small ones are collected.