submitPriority

Submits PRIORITY frame to change the priority of stream |stream_id| to the priority specification |pri_spec|.

More...

Detailed Description

The |pri_spec| is priority specification of this request. null is not allowed for this function. To specify the priority, use PrioritySpec.init. This function will copy its data members.

The pri_spec.weight must be in [MIN_WEIGHT, MAX_WEIGHT], inclusive. If pri_spec.weight is strictly less than MIN_WEIGHT, it becomes MIN_WEIGHT. If it is strictly greater than MAX_WEIGHT, it becomes MAX_WEIGHT.

This function returns 0 if it succeeds, or one of the following negative error codes:

ErrorCode.INVALID_ARGUMENT The |stream_id| is 0; or the |pri_spec| is null; or trying to depend on itself.

Meta