ltm rule command HTTP2 headerΒΆ

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

HTTP2::header
       Queries or modifies HTTP/2 pseudo-headers.

SYNOPSIS
       HTTP2::header (
			       ( HTTP_HEADER_EXCL_SUBCOMMANDS ) 			   |
			       ( 'replace' HTTP_HEADER_NAME (HTTP_HEADER_VALUE)? )	   |
			       ( 'remove'  HTTP_HEADER_NAME )
			    )

DESCRIPTION
       Queries or modifies HTTP/2 pseudo-headers.  The HTTP2 pseudo-header names are lowercase and start with a ':' character.

       Syntax

       HTTP2::header 
	    * Returns the value of the HTTP/2 pseudo-header named .
	    * Returns a null string if the HTTP/2 pseudo-header named  does not
	      exist.

       HTTP2::header replace  []
	    * Replaces the value of the pseudo-header named  with the string .
	      This command does not perform a header insertion if the pseudo-header was not
	      present.

       HTTP2::header remove 
	    * Removes the pseudo-header with the name .

RETURN VALUE
VALID DURING
       ASM_REQUEST_BLOCKING, ASM_REQUEST_VIOLATION, ASM_RESPONSE_VIOLATION, CACHE_REQUEST, CACHE_RESPONSE, HTTP_REQUEST,
       HTTP_REQUEST_DATA, HTTP_REQUEST_SEND, HTTP_RESPONSE, HTTP_RESPONSE_DATA, REWRITE_REQUEST_DONE, SERVER_CONNECTED,
       MR_INGRESS, MR_EGRESS

EXAMPLES
	when HTTP_REQUEST {
	  if { [HTTP2::header :authority] starts_with "uat" }  {
	    pool uat_pool
	  } else {
	    pool main_pool
	  }
	}

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

BIG-IP							    2022-04-12							  iRule(1)