hyper_to_lambda_response

Function hyper_to_lambda_response 

Source
pub async fn hyper_to_lambda_response(
    hyper_resp: Response<UnsyncBoxBody<Bytes, Error>>,
) -> Result<Response<Body>>
Expand description

Convert hyper::Response to lambda_http::Response

This collects the streaming body into a LambdaBody for non-streaming responses. Used by the handle() method which returns snapshot responses.