File: nghttp2_priority_spec_init.rst

package info (click to toggle)
nghttp2 1.68.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,584 kB
  • sloc: ansic: 104,573; cpp: 55,792; ruby: 30,108; yacc: 7,083; sh: 4,643; makefile: 1,506; python: 806
file content (24 lines) | stat: -rw-r--r-- 703 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

nghttp2_priority_spec_init
==========================

Synopsis
--------

*#include <nghttp2/nghttp2.h>*

.. function:: void nghttp2_priority_spec_init(nghttp2_priority_spec *pri_spec, int32_t stream_id, int32_t weight, int exclusive)

    
    .. warning::
    
      Deprecated.  :rfc:`7540` priorities are deprecated by
      :rfc:`9113`.  Consider migrating to :rfc:`9218` extensible
      prioritization scheme.
    
    Initializes *pri_spec* with the *stream_id* of the stream to depend
    on with *weight* and its exclusive flag.  If *exclusive* is
    nonzero, exclusive flag is set.
    
    The *weight* must be in [:macro:`NGHTTP2_MIN_WEIGHT`,
    :macro:`NGHTTP2_MAX_WEIGHT`], inclusive.