pub fn detect_protocol(headers: &HeaderMap, body: &Bytes) -> Option<Protocol>
Detect which protocol an incoming request uses.