ltm rule command HTTP2 activeΒΆ

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

HTTP2::active
       This command can be used to determine if a request or response is generated by HTTP/2.

SYNOPSIS
       HTTP2::active

DESCRIPTION
       Returns 1 if the HTTP transaction is using HTTP/2. Returns 0 otherwise.

RETURN VALUE
       The return is 1 if the HTTP transaction is using HTTP/2, 0 otherwise.

VALID DURING
       HTTP MR_INGRESS MR_EGRESS

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

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

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