ltm rule command HTTP versionΒΆ

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

HTTP::version
       Returns or sets the HTTP version of the request or response.

SYNOPSIS
       HTTP::version ('0.9' | '1.0' | '1.1')?

       HTTP::version '-string' (ANY_CHARS)?

DESCRIPTION
       Returns or sets the HTTP version of the request or response. This command replaces the BIG-IP 4.X variable
       http_version.  If needed, Connection and Host headers will automatically be added appropriately.
       HTTP::version will return the original version of the request or response, even if it has been changed.	Note
       that this will return the "effective" version used, which may be different than the actual version string in
       the request or response.  For example, invalid version numbers may be parsed as 1.1 in order to increase
       inter-operability with common HTTP servers.

       Syntax

       HTTP::version ["0.9" | "1.0" | "1.1"]

	    * Returns or sets the HTTP version of the request or response. The versions "2.0" and "3.0" can be returned but not set.

       HTTP::version -string

	    * Returns or sets the exact string HTTP version of the request or response.

RETURN VALUE
       Returns the HTTP version of the request or response

VALID DURING
       CACHE_REQUEST, CACHE_RESPONSE, HTTP_REQUEST, HTTP_REQUEST_DATA, HTTP_REQUEST_SEND, HTTP_RESPONSE,
       HTTP_RESPONSE_CONTINUE, HTTP_RESPONSE_DATA, HTTP_PROXY_CONNECT, HTTP_PROXY_RESPONSE, SERVER_CONNECTED,
       MR_INGRESS, MR_EGRESS

EXAMPLES
	when HTTP_RESPONSE {
	  HTTP::version "1.1"
	}

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

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