ltm rule command SPDY stream
iRule(1) BIG-IP TMSH Manual iRule(1)
SPDY::stream
This command can be used to determine the stream attributes including
id and priority. This command can also be used to set the priority for
a current active stream.
SYNOPSIS
DESCRIPTION
This command can be used to determine the stream attributes including
id and priority. This command can also be used to set the priority for
a current active stream.
SPDY::stream
Returns the stream id. Returns 0 if SPDY is not active.
SPDY::stream id
Returns the stream id. Returns 0 if SPDY is not active.
SPDY::stream priority
Returns the priority of the current stream.
SPDY::stream priority
Sets the priority of the current active stream. The return is 0 is
the priority was set. Returns an error if the priority is out of
bounds. SPDY version 2 uses 2 bit priority value for streams, hence
allowed values are 0-3. SPDY version 3 uses 3 bit priority values for
streams, hence allowed values are 0-7.
RETURN VALUE
VALID DURING
HTTP TCP
EXAMPLES
when HTTP_REQUEST {
if {[SPDY::version] != 0} {
HTTP::header insert "X-SPDY-Values stream id/priority " "[SPDY::stream id]/[SPDY::stream priority]"
}
}
HINTS
When using the set current stream priority command, an error will be
returned if the priority value is out of bounds.
SEE ALSO
CHANGE LOG
@BIGIP-11.6.0
--First introduced the command.
BIG-IP 2017-01-31 iRule(1)