Skip to main content

KNOWN_NON_HTTP_PROTOCOL_METHODS

Constant KNOWN_NON_HTTP_PROTOCOL_METHODS 

pub const KNOWN_NON_HTTP_PROTOCOL_METHODS: &'static [&'static str];
Available on crate feature net only.
Expand description

Known non-HTTP protocol prefixes which resemble HTTP/1 methods.

Covers Redis, IRC, SMTP, FTP, SSH and HAProxy PROXY v1. Matching is case-sensitive and fail-fast, so it can also reject HTTP extension methods with one of these prefixes. Server-first protocols are only recognized once a listed client prefix arrives.