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

Function should_strip_request_header

crates/openshell-router/src/backend.rs:151–156  ·  view source on GitHub ↗
(name: &str)

Source from the content-addressed store, hash-verified

149}
150
151fn should_strip_request_header(name: &str) -> bool {
152 matches!(
153 name,
154 "authorization" | "x-api-key" | "host" | "content-length"
155 ) || is_hop_by_hop_header(name)
156}
157
158fn is_hop_by_hop_header(name: &str) -> bool {
159 matches!(

Callers 1

sanitize_request_headersFunction · 0.85

Calls 1

is_hop_by_hop_headerFunction · 0.70

Tested by

no test coverage detected