MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / is_gateway_auth_header

Function is_gateway_auth_header

crates/openshell-server/src/service_routing.rs:528–537  ·  view source on GitHub ↗
(name: &header::HeaderName)

Source from the content-addressed store, hash-verified

526}
527
528fn is_gateway_auth_header(name: &header::HeaderName) -> bool {
529 matches!(
530 name.as_str(),
531 "authorization"
532 | "cf-access-jwt-assertion"
533 | "x-forwarded-client-cert"
534 | "x-ssl-client-cert"
535 | "x-client-cert"
536 )
537}
538
539fn sanitize_cookie_header(value: &HeaderValue) -> Option<HeaderValue> {
540 let value = value.to_str().ok()?;

Callers 1

build_upstream_requestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected