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 the HTTP/2 protocol version used. Returns 0 if no HTTP/2
       request is active.

RETURN VALUE
       The return is a string containing HTTP/2 protocol version, 0 if HTTP/2
       is not active.

VALID DURING
       HTTP TCP

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				  2017-01-31			      iRule(1)