ltm rule command RTSP header
iRule(1) BIG-IP TMSH Manual iRule(1)
RTSP::header
Manages headers in RTSP requests and responses.
SYNOPSIS
RTSP::header (exists | remove | value) HEADER_NAME
RTSP::header replace HEADER_NAME HEADER_VALUE
RTSP::header insert (<(HEADER_NAME HEADER_VALUE)+> |
(HEADER_NAME HEADER_VALUE)+)
DESCRIPTION
Manages headers in RTSP requests and responses.
Syntax
RTSP::header exists
* Returns a value of 0 or 1, indicating whether the specified header
is present in the current RTSP request/response. This command is
valid in the RTSP_REQUEST and RTSP_RESPONSE events.
RTSP::header insert ...
* Inserts one or more headers into the current RTSP request/response.
This command accepts either a list of name/value pairs or a single
argument that is a TCL list of name/value pairs.
RTSP::header remove
* Removes all instances of the specified header from the current RTSP
request/response.
RTSP::header replace
* Removes all instances of the first header, and inserts the second
header into the current RTSP request/response.
RTSP::header value
* Returns the value associated with the specified header in the
current RTSP request/response. Returns an empty string if the
header is not present.
RETURN VALUE
VALID DURING
EXAMPLES
rule xxx {
when RTSP_REQUEST {
puts [RTSP::header value "x-header"]
}
}
HINTS
SEE ALSO
CHANGE LOG
@BIGIP-9.4.3 --First introduced the command.
BIG-IP 2017-01-31 iRule(1)