wrap_response

Function wrap_response 

Source
pub fn wrap_response(
    resp: Response<ProxyBody>,
    plan: &CompressionPlan,
) -> Response<ProxyBody>
Expand description

Apply a plan to a response (DW-027): header rewrite + body wrap. Content-Length is removed (the encoded length differs); the encoding token and Vary: Accept-Encoding are set.