HTTP Inspector
HTTP Inspector listener filter allows detecting whether the application protocol appears to be HTTP, and if it is HTTP, it detects the HTTP protocol (HTTP/1.x or HTTP/2) further. This can be used to select a FilterChain via the application_protocols of a FilterChainMatch.
This filter should be configured with the name envoy.filters.listener.http_inspector.
Example
A sample filter configuration could be:
listener_filters:
- name: "envoy.filters.listener.http_inspector"
Statistics
This filter has a statistics tree rooted at http_inspector with the following statistics:
Name | Type | Description |
---|---|---|
read_error | Counter | Total read errors |
http10_found | Counter | Total number of times HTTP/1.0 was found |
http11_found | Counter | Total number of times HTTP/1.1 was found |
http2_found | Counter | Total number of times HTTP/2 was found |
http_not_found | Counter | Total number of times HTTP protocol was not found |