HTTP2::version

Description

This command can be used to determine the HTTP/2 protocol version used. Returns the HTTP/2 protocol version used. Returns 0 if no HTTP/2 request is active.

Syntax

HTTP2::version

Examples

when HTTP_REQUEST {
  if {[HTTP2::version] != 0} {
    HTTP::header insert "X-HTTP2-Values version " "[HTTP2::version]"
  }
}