ltm rule command HTTP2 versionΒΆ

iRule(1)					  BIG-IP TMSH Manual					     iRule(1)

HTTP2::version
       This command can be used to determine the HTTP/2 protocol version used.

SYNOPSIS
       HTTP2::version

DESCRIPTION
       Returns 2 if the HTTP/2 protocol is used. Returns 0 if no HTTP/2 request is active.

RETURN VALUE
       The return is 2 if the HTTP/2 protocol is used, 0 if HTTP/2 is not active.

VALID DURING
       HTTP, MR_INGRESS

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

HINTS
SEE ALSO
CHANGE LOG
       @BIGIP-11.6.0
	   --First introduced the command.

BIG-IP						      2020-06-23					     iRule(1)