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 is generated by
       HTTP/2.

SYNOPSIS
       HTTP2::active

DESCRIPTION
       Returns 1 if the HTTP request is generated by HTTP/2. Returns 0
       otherwise.

RETURN VALUE
       The return is 1 if the HTTP request is generated by HTTP/2, 0
       otherwise.

VALID DURING
       HTTP TCP

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