Skip to main content

relay_script

Function relay_script 

Source
pub async fn relay_script(client: &Client, upstream: &str) -> Response
Expand description

Fetches an upstream script and returns it with the upstream’s own headers.

Content type and cache policy are echoed rather than invented, so the proxied script behaves exactly as the vendor intends it to.