HTTP2::header

Description

This command queries or modifies HTTP/2 pseudo-headers

Syntax

HTTP2::header <name>
HTTP2::header replace <name> [<string>]
HTTP2::header remove <name>

HTTP2::header <name>

  • Returns the value of the HTTP/2 pseudo-header named <name>.
  • Returns a null string if the HTTP/2 pseudo-header named <name> does not exist.

HTTP2::header replace <name> [<string>]

  • Replaces the value of the pseudo-header named <name> with the string <string>. This command does not perform a header insertion if the pseudo-header was not present.

HTTP2::header remove <name>

  • Removes the pseudo-header with the name <name>.

Examples

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