Macros

NGHTTP2_VERSION

Version number of the nghttp2 library release

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.

NGHTTP2_PROTO_VERSION_ID

The protocol version identification string of this library supports. This identifier is used if HTTP/2 is used over TLS.

NGHTTP2_PROTO_VERSION_ID_LEN

The length of NGHTTP2_PROTO_VERSION_ID.

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. This is useful to process incoming ALPN tokens in wire format.

NGHTTP2_PROTO_ALPN_LEN

The length of NGHTTP2_PROTO_ALPN.

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.

NGHTTP2_CLEARTEXT_PROTO_VERSION_ID_LEN

The length of NGHTTP2_CLEARTEXT_PROTO_VERSION_ID.

NGHTTP2_VERSION_AGE

The age of nghttp2_info

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.

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.

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.

NGHTTP2_MAX_WINDOW_SIZE

The maximum window size

NGHTTP2_INITIAL_WINDOW_SIZE

The initial window size for stream level flow control.

NGHTTP2_INITIAL_CONNECTION_WINDOW_SIZE

The initial window size for connection level flow control.

NGHTTP2_DEFAULT_HEADER_TABLE_SIZE

The default header table size.

NGHTTP2_CLIENT_MAGIC

The client magic string, which is the first 24 bytes byte string of client connection preface.

NGHTTP2_CLIENT_MAGIC_LEN

The length of NGHTTP2_CLIENT_MAGIC.

NGHTTP2_DEFAULT_MAX_SETTINGS

The default max number of settings per SETTINGS frame

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 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.

NGHTTP2_EXTPRI_DEFAULT_URGENCY

NGHTTP2_EXTPRI_DEFAULT_URGENCY is the default urgency level for RFC 9218 extensible priorities.

NGHTTP2_EXTPRI_URGENCY_HIGH

NGHTTP2_EXTPRI_URGENCY_HIGH is the highest urgency level for RFC 9218 extensible priorities.

NGHTTP2_EXTPRI_URGENCY_LOW

NGHTTP2_EXTPRI_URGENCY_LOW is the lowest urgency level for RFC 9218 extensible priorities.

NGHTTP2_EXTPRI_URGENCY_LEVELS

NGHTTP2_EXTPRI_URGENCY_LEVELS is the number of urgency levels for RFC 9218 extensible priorities.