pub fn match_handshake(buf: &[u8]) -> bool
Expand description

Reports whether the given stream begins with a pgwire handshake.

To avoid false negatives, there must be at least eight bytes in buf.