HTTP2::disable

Description

This command changes the HTTP2 filter from full parsing to passthrough mode. This command is useful when using an HTTP2 profile with an application that proxies data over HTTP.

Syntax

HTTP2::disable [clientside | serverside | discard]

HTTP2::disable

  • Puts HTTP2 traffic filtering into passthrough mode (disabling the HTTP2 proxy) for the lifetime of the TCP connection or until HTTP2::enable is called. Any currently open HTTP2 streams will be aborted on the corresponding side, and transition to passthrough mode will occur when all their pending data has been flushed. Once in passthrough mode, following data will not be encoded/decoded into the HTTP2 protocol. Note that HTTP2 processing on the server-sides of streams may be independently disabled.

HTTP2::disable clientside

  • Disables the client-side HTTP2 filter only.

HTTP2::disable serverside

  • Disables the server-side HTTP2 filter only. If this is called before the server-side is connected, then the stream or connection will by default use HTTP1.

HTTP2::disable discard

  • Same as ‘HTTP2::disable’ but also discards any pending data.

Examples

when HTTP_REQUEST {
    if { [HTTP::uri] contains "http1_backend"} {
        HTTP2::disable serverside
    }
}