Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 33 additions & 10 deletions deps/ngtcp2/nghttp3/lib/includes/nghttp3/nghttp3.h
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,16 @@ NGHTTP3_EXTERN void nghttp3_buf_reset(nghttp3_buf *buf);
*/
#define NGHTTP3_NV_FLAG_NO_COPY_VALUE 0x04u

/**
* @macro
*
* :macro:`NGHTTP3_NV_FLAG_TRY_INDEX` gives a hint to QPACK encoder to
* index a header field which is not indexed by default. This is just
* a hint, and QPACK encoder might not encode the field in various
* reasons.
*/
#define NGHTTP3_NV_FLAG_TRY_INDEX 0x08u

/**
* @struct
*
Expand Down Expand Up @@ -1071,8 +1081,8 @@ typedef struct nghttp3_qpack_nv {
nghttp3_rcbuf *value;
/**
* :member:`token` is :type:`nghttp3_qpack_token` value of
* :member:`name`. It could be -1 if we have no token for that
* header field name.
* :member:`name`. It could be -1 if we have no token for that
* header field name.
*/
int32_t token;
/**
Expand Down Expand Up @@ -1804,8 +1814,8 @@ typedef int (*nghttp3_reset_stream)(nghttp3_conn *conn, int64_t stream_id,
typedef int (*nghttp3_shutdown)(nghttp3_conn *conn, int64_t id,
void *conn_user_data);

#define NGHTTP3_CALLBACKS_VERSION_V1 1
#define NGHTTP3_CALLBACKS_VERSION NGHTTP3_CALLBACKS_VERSION_V1
#define NGHTTP3_CALLBACKS_V1 1
#define NGHTTP3_CALLBACKS_VERSION NGHTTP3_CALLBACKS_V1

/**
* @struct
Expand Down Expand Up @@ -1889,8 +1899,8 @@ typedef struct nghttp3_callbacks {
nghttp3_shutdown shutdown;
} nghttp3_callbacks;

#define NGHTTP3_SETTINGS_VERSION_V1 1
#define NGHTTP3_SETTINGS_VERSION NGHTTP3_SETTINGS_VERSION_V1
#define NGHTTP3_SETTINGS_V1 1
#define NGHTTP3_SETTINGS_VERSION NGHTTP3_SETTINGS_V1

/**
* @struct
Expand Down Expand Up @@ -1924,11 +1934,15 @@ typedef struct nghttp3_settings {
size_t qpack_blocked_streams;
/**
* :member:`enable_connect_protocol`, if set to nonzero, enables
* Extended CONNECT Method (see
* https://www.ietf.org/archive/id/draft-ietf-httpbis-h3-websockets-00.html).
* Client ignores this field.
* Extended CONNECT Method (see :rfc:`9220`). Client ignores this
* field.
*/
int enable_connect_protocol;
/**
* :member:`h3_datagram`, if set to nonzero, enables HTTP/3
* Datagrams (see :rfc:`9297`).
*/
int h3_datagram;
} nghttp3_settings;

/**
Expand Down Expand Up @@ -2359,7 +2373,7 @@ NGHTTP3_EXTERN int nghttp3_conn_submit_shutdown_notice(nghttp3_conn *conn);
* called after `nghttp3_conn_submit_shutdown_notice` and a couple of
* RTT. After calling this function, the local endpoint starts
* rejecting new incoming streams. The existing streams are processed
* normally.
* normally. See also `nghttp3_conn_is_drained`.
*/
NGHTTP3_EXTERN int nghttp3_conn_shutdown(nghttp3_conn *conn);

Expand Down Expand Up @@ -2546,6 +2560,15 @@ NGHTTP3_EXTERN int nghttp3_http_parse_priority(nghttp3_pri *dest,
const uint8_t *value,
size_t len);

/**
* @function
*
* `nghttp3_conn_is_drained` returns nonzero if
* `nghttp3_conn_shutdown` has been called, and there is no active
* remote streams. This function is for server use only.
*/
NGHTTP3_EXTERN int nghttp3_conn_is_drained(nghttp3_conn *conn);

/**
* @macrosection
*
Expand Down
4 changes: 2 additions & 2 deletions deps/ngtcp2/nghttp3/lib/includes/nghttp3/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
*
* Version number of the nghttp3 library release.
*/
#define NGHTTP3_VERSION "0.7.0"
#define NGHTTP3_VERSION "0.10.0"

/**
* @macro
Expand All @@ -41,6 +41,6 @@
* number, 8 bits for minor and 8 bits for patch. Version 1.2.3
* becomes 0x010203.
*/
#define NGHTTP3_VERSION_NUM 0x000700
#define NGHTTP3_VERSION_NUM 0x000a00

#endif /* NGHTTP3_VERSION_H */
Loading