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

Function header_end

crates/openshell-supervisor-network/src/token_grant.rs:693–697  ·  view source on GitHub ↗
(buf: &[u8])

Source from the content-addressed store, hash-verified

691 }
692
693 fn header_end(buf: &[u8]) -> Option<usize> {
694 buf.windows(4)
695 .position(|w| w == b"\r\n\r\n")
696 .map(|idx| idx + 4)
697 }
698
699 fn parse_token_request(buf: &[u8]) -> CapturedTokenRequest {
700 let header_end = header_end(buf).expect("request should contain header terminator");

Callers 3

token_endpoint_onceFunction · 0.85
parse_token_requestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected