Skip to main content

build_origin_request

Function build_origin_request 

Source
pub fn build_origin_request(request: &ForwardRequest) -> String
Expand description

Build an origin-form HTTP request to send to the upstream server.

Converts the parsed absolute-form request into origin-form by:

  • Using only the path component as the request target
  • Filtering out hop-by-hop headers
  • Adding Connection: close to avoid keep-alive complications