diff --git a/_sources/apiref.txt b/_sources/apiref.txt index d33088d1..8fa2f6a7 100644 --- a/_sources/apiref.txt +++ b/_sources/apiref.txt @@ -271,16 +271,12 @@ Enums The PRIORITY flag. .. macro:: NGHTTP2_FLAG_END_PUSH_PROMISE - (``0x1``) + (``0x4``) The END_PUSH_PROMISE flag. .. macro:: NGHTTP2_FLAG_PONG (``0x1``) The PONG flag. - .. macro:: NGHTTP2_FLAG_END_FLOW_CONTROL - - (``0x1``) - The END_FLOW_CONTROL flag. .. type:: nghttp2_settings_id @@ -1363,6 +1359,8 @@ Functions :macro:`NGHTTP2_ERR_NOMEM` Out of memory. + :macro:`NGHTTP2_ERR_STREAM_CLOSED` + The stream is already closed or does not exist. .. function:: int nghttp2_submit_priority(nghttp2_session *session, int32_t stream_id, int32_t pri) @@ -1377,6 +1375,8 @@ Functions Out of memory. :macro:`NGHTTP2_ERR_INVALID_ARGUMENT` The *pri* is negative. + :macro:`NGHTTP2_ERR_STREAM_CLOSED` + The stream is already closed or does not exist. .. function:: int nghttp2_submit_rst_stream(nghttp2_session *session, int32_t stream_id, nghttp2_error_code error_code) @@ -1408,7 +1408,8 @@ Functions negative error codes: :macro:`NGHTTP2_ERR_INVALID_ARGUMENT` - The *iv* contains duplicate settings ID or invalid value. + The *iv* contains invalid value (e.g., attempting to re-enable + flow control). :macro:`NGHTTP2_ERR_NOMEM` Out of memory. @@ -1445,6 +1446,8 @@ Functions :macro:`NGHTTP2_ERR_INVALID_ARGUMENT` The *nv* includes empty name or ``NULL`` value. + :macro:`NGHTTP2_ERR_STREAM_CLOSED` + The stream is already closed or does not exist. :macro:`NGHTTP2_ERR_NOMEM` Out of memory. @@ -1489,6 +1492,8 @@ Functions Submits WINDOW_UPDATE frame. + The *flags* is currently ignored. + If the *window_size_increment* is positive, the WINDOW_UPDATE with that value as window_size_increment is queued. If the *window_size_increment* is larger than the received bytes from the @@ -1507,9 +1512,7 @@ Functions negative error codes: :macro:`NGHTTP2_ERR_INVALID_ARGUMENT` - The *delta_window_size* is 0 and - :macro:`NGHTTP2_FLAG_END_FLOW_CONTROL` bit is not set in - *flags*. + The *delta_window_size* is 0. :macro:`NGHTTP2_ERR_FLOW_CONTROL` The local window size overflow or gets negative. :macro:`NGHTTP2_ERR_STREAM_CLOSED` diff --git a/_static/default2.css b/_static/default2.css index e5ebaf98..d63d81f8 100644 --- a/_static/default2.css +++ b/_static/default2.css @@ -1,4 +1,4 @@ -@import url(http://fonts.googleapis.com/css?family=Roboto:400,400italic,500,500italic); +@import url(//fonts.googleapis.com/css?family=Roboto:400,400italic,500,500italic); pre, tt { font-family: monospace, sans-serif; diff --git a/apiref.html b/apiref.html index 0c45cf7c..970ddd21 100644 --- a/apiref.html +++ b/apiref.html @@ -448,7 +448,7 @@ The PRIORITY flag.

NGHTTP2_FLAG_END_PUSH_PROMISE
-

(0x1) +

(0x4) The END_PUSH_PROMISE flag.

@@ -459,13 +459,6 @@ The END_PUSH_PROMISE flag.

The PONG flag.

-
-
-NGHTTP2_FLAG_END_FLOW_CONTROL
-

(0x1) -The END_FLOW_CONTROL flag.

-
-
@@ -1793,6 +1786,8 @@ negative error codes:

NGHTTP2_ERR_NOMEM
Out of memory.
+
NGHTTP2_ERR_STREAM_CLOSED
+
The stream is already closed or does not exist.
@@ -1808,6 +1803,8 @@ negative error codes:

Out of memory.
NGHTTP2_ERR_INVALID_ARGUMENT
The pri is negative.
+
NGHTTP2_ERR_STREAM_CLOSED
+
The stream is already closed or does not exist.
@@ -1839,7 +1836,8 @@ RST_STREAM is issued against such a stream.

negative error codes:

NGHTTP2_ERR_INVALID_ARGUMENT
-
The iv contains duplicate settings ID or invalid value.
+
The iv contains invalid value (e.g., attempting to re-enable +flow control).
NGHTTP2_ERR_NOMEM
Out of memory.
@@ -1873,6 +1871,8 @@ negative error codes:

NGHTTP2_ERR_INVALID_ARGUMENT
The nv includes empty name or NULL value.
+
NGHTTP2_ERR_STREAM_CLOSED
+
The stream is already closed or does not exist.
NGHTTP2_ERR_NOMEM
Out of memory.
@@ -1918,6 +1918,7 @@ negative error codes:

int nghttp2_submit_window_update(nghttp2_session *session, uint8_t flags, int32_t stream_id, int32_t window_size_increment)

Submits WINDOW_UPDATE frame.

+

The flags is currently ignored.

If the window_size_increment is positive, the WINDOW_UPDATE with that value as window_size_increment is queued. If the window_size_increment is larger than the received bytes from the @@ -1934,9 +1935,7 @@ received bytes count.

negative error codes:

NGHTTP2_ERR_INVALID_ARGUMENT
-
The delta_window_size is 0 and -NGHTTP2_FLAG_END_FLOW_CONTROL bit is not set in -flags.
+
The delta_window_size is 0.
NGHTTP2_ERR_FLOW_CONTROL
The local window size overflow or gets negative.
NGHTTP2_ERR_STREAM_CLOSED
diff --git a/genindex.html b/genindex.html index 7aeb7b09..1f7146f2 100644 --- a/genindex.html +++ b/genindex.html @@ -225,10 +225,6 @@ -
NGHTTP2_FLAG_END_FLOW_CONTROL (C macro) -
- -
NGHTTP2_FLAG_END_HEADERS (C macro)
@@ -460,12 +456,12 @@
nghttp2_on_data_chunk_recv_callback (C type)
-
-
nghttp2_on_data_recv_callback (C type)
+
+
nghttp2_on_data_send_callback (C type)
diff --git a/index.html b/index.html index 313890a6..5a1805da 100644 --- a/index.html +++ b/index.html @@ -57,6 +57,7 @@ version 2.0.