Skip to main content

proxy_get

Function proxy_get 

Source
pub async fn proxy_get(
    path: &str,
    request_headers: &HeaderMap,
    state: &ProxyState,
) -> ProxyResponse
Expand description

Proxy a GET request to an arbitrary upstream path.

Applies the same header filtering and auth injection as proxy_request. Uses the non-streaming client; the response body is returned as a full ProxyBody::Full payload.