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

Function looks_like_tls

crates/openshell-server/src/lib.rs:586–588  ·  view source on GitHub ↗
(prefix: &[u8])

Source from the content-addressed store, hash-verified

584}
585
586fn looks_like_tls(prefix: &[u8]) -> bool {
587 prefix.len() >= 3 && prefix[0] == 0x16 && prefix[1] == 0x03
588}
589
590fn looks_like_http(prefix: &[u8]) -> bool {
591 const METHODS: [&[u8]; 10] = [

Callers 1

classify_initial_bytesFunction · 0.70

Calls 1

lenMethod · 0.80

Tested by

no test coverage detected