1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141
|
Macros
======
.. macro:: NGHTTP2_VERSION
Version number of the nghttp2 library release
.. macro:: NGHTTP2_VERSION_NUM
Numerical representation of the version number of the nghttp2 library
release. This is a 24 bit number with 8 bits for major number, 8 bits
for minor and 8 bits for patch. Version 1.2.3 becomes 0x010203.
.. macro:: NGHTTP2_PROTO_VERSION_ID
The protocol version identification string of this library
supports. This identifier is used if HTTP/2 is used over TLS.
.. macro:: NGHTTP2_PROTO_VERSION_ID_LEN
The length of :macro:`NGHTTP2_PROTO_VERSION_ID`.
.. macro:: NGHTTP2_PROTO_ALPN
The serialized form of ALPN protocol identifier this library
supports. Notice that first byte is the length of following
protocol identifier. This is the same wire format of `TLS ALPN
extension <https://tools.ietf.org/html/rfc7301>`_. This is useful
to process incoming ALPN tokens in wire format.
.. macro:: NGHTTP2_PROTO_ALPN_LEN
The length of :macro:`NGHTTP2_PROTO_ALPN`.
.. macro:: NGHTTP2_CLEARTEXT_PROTO_VERSION_ID
The protocol version identification string of this library
supports. This identifier is used if HTTP/2 is used over cleartext
TCP.
.. macro:: NGHTTP2_CLEARTEXT_PROTO_VERSION_ID_LEN
The length of :macro:`NGHTTP2_CLEARTEXT_PROTO_VERSION_ID`.
.. macro:: NGHTTP2_VERSION_AGE
The age of :type:`nghttp2_info`
.. macro:: NGHTTP2_DEFAULT_WEIGHT
.. warning::
Deprecated. :rfc:`7540` priorities are deprecated by
:rfc:`9113`. Consider migrating to :rfc:`9218` extensible
prioritization scheme.
The default weight of stream dependency.
.. macro:: NGHTTP2_MAX_WEIGHT
.. warning::
Deprecated. :rfc:`7540` priorities are deprecated by
:rfc:`9113`. Consider migrating to :rfc:`9218` extensible
prioritization scheme.
The maximum weight of stream dependency.
.. macro:: NGHTTP2_MIN_WEIGHT
.. warning::
Deprecated. :rfc:`7540` priorities are deprecated by
:rfc:`9113`. Consider migrating to :rfc:`9218` extensible
prioritization scheme.
The minimum weight of stream dependency.
.. macro:: NGHTTP2_MAX_WINDOW_SIZE
The maximum window size
.. macro:: NGHTTP2_INITIAL_WINDOW_SIZE
The initial window size for stream level flow control.
.. macro:: NGHTTP2_INITIAL_CONNECTION_WINDOW_SIZE
The initial window size for connection level flow control.
.. macro:: NGHTTP2_DEFAULT_HEADER_TABLE_SIZE
The default header table size.
.. macro:: NGHTTP2_CLIENT_MAGIC
The client magic string, which is the first 24 bytes byte string of
client connection preface.
.. macro:: NGHTTP2_CLIENT_MAGIC_LEN
The length of :macro:`NGHTTP2_CLIENT_MAGIC`.
.. macro:: NGHTTP2_DEFAULT_MAX_SETTINGS
The default max number of settings per SETTINGS frame
.. macro:: NGHTTP2_INITIAL_MAX_CONCURRENT_STREAMS
.. warning::
Deprecated. The initial max concurrent streams is 0xffffffffu.
Default maximum number of incoming concurrent streams. Use
`nghttp2_submit_settings()` with
:enum:`nghttp2_settings_id.NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS`
to change the maximum number of incoming concurrent streams.
.. note::
The maximum number of outgoing concurrent streams is 100 by
default.
.. macro:: NGHTTP2_EXTPRI_DEFAULT_URGENCY
:macro:`NGHTTP2_EXTPRI_DEFAULT_URGENCY` is the default urgency
level for :rfc:`9218` extensible priorities.
.. macro:: NGHTTP2_EXTPRI_URGENCY_HIGH
:macro:`NGHTTP2_EXTPRI_URGENCY_HIGH` is the highest urgency level
for :rfc:`9218` extensible priorities.
.. macro:: NGHTTP2_EXTPRI_URGENCY_LOW
:macro:`NGHTTP2_EXTPRI_URGENCY_LOW` is the lowest urgency level for
:rfc:`9218` extensible priorities.
.. macro:: NGHTTP2_EXTPRI_URGENCY_LEVELS
:macro:`NGHTTP2_EXTPRI_URGENCY_LEVELS` is the number of urgency
levels for :rfc:`9218` extensible priorities.
|