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

Function header_value

e2e/rust/tests/websocket_conformance.rs:204–213  ·  view source on GitHub ↗
(request: &str, name: &str)

Source from the content-addressed store, hash-verified

202}
203
204fn header_value(request: &str, name: &str) -> Option<String> {
205 request.lines().find_map(|line| {
206 let (header, value) = line.split_once(':')?;
207 if header.trim().eq_ignore_ascii_case(name) {
208 Some(value.trim().to_string())
209 } else {
210 None
211 }
212 })
213}
214
215fn websocket_accept_for_key(key: &str) -> String {
216 let mut hasher = Sha1::new();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected