HTTP2::enable

Description

This command changes the HTTP2 filter from passthrough to full parsing mode. This command is useful when it is unknown whether HTTP2 will be used at configuration time, but known at runtime. This command is quite tricky to get right. In general, it may be better to use HTTP2::disable.

Syntax

HTTP2::enable [clientside | serverside ]

HTTP2::enable

  • Change the HTTP2 filter from passthrough mode to full parsing mode. Puts HTTP traffic filtering into full parsing mode (enabling the HTTP2 proxy) for the lifetime of the TCP connection or until HTTP2::disable is called. Note that HTTP2 processing on the server-sides of streams may be independently enabled.

HTTP2::enable clientside

  • Enables the client-side HTTP2 filter only.

HTTP2::enable serverside

  • Enables the server-side HTTP2 filter only.

Examples

when CLIENT_ACCEPTED {
    HTTP2::disable
    if { !([IP::addr [IP::client_addr] eq 10.0.0.0/8]) } {
        HTTP2::enable
    }
}