Expand description
HTTP traffic detection utilities.
Provides functions to quickly determine whether a byte slice looks like HTTP/1.x request or response data, without full parsing.
Functionsยง
- is_http
- Returns
trueifbuflooks like any HTTP/1.x traffic (request or response). - is_
http_ request - Returns
trueifbufbegins with a recognised HTTP request method token. - is_
http_ response - Returns
trueifbufbegins with the HTTP response status-line prefix"HTTP/".