HTTP2::active

Description

This command can be used to determine if a request is generated by HTTP/2. Returns 1 if the HTTP request is generated by HTTP/2. Returns 0 otherwise.

Syntax

HTTP2::active

Examples

when HTTP_REQUEST {
  if {[HTTP2::active]} {
    log local0. "request from HTTP/2 client"
  }
}