ltm rule command SPDY priorityΒΆ

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



SPDY::priority
       This command can be used to get or set the priority for a current
       active stream.

SYNOPSIS
DESCRIPTION
       Set or get the current stream priority.

       SPDY::priority
	   Returns the priority of the current stream. Returns 0 if SPDY is
       not active.

       SPDY::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} {
		set old_pri [SPDY::priority]
		set new_pri [URI::query [HTTP::uri] pri]
		if { $new_pri != "" } {
		    SPDY::priority $new_pri
		}
		HTTP::header insert "X-SPDY-Values stream/priority " "[SPDY::stream]/[SPDY::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.3.0
	   --First introduced the command.



BIG-IP				  2017-01-31			      iRule(1)