mirror of
https://gitee.com/openharmony/third_party_nghttp2
synced 2024-11-24 08:20:20 +00:00
Add note about pseudo header ordering validation in on_header_callback
This commit is contained in:
parent
30499005f8
commit
d23105ccb7
@ -1393,6 +1393,11 @@ typedef int (*nghttp2_on_begin_headers_callback)(nghttp2_session *session,
|
||||
* `nghttp2_check_header_value()` provide simple validation against
|
||||
* HTTP2 header field construction rule.
|
||||
*
|
||||
* HTTP/2 specification requires that pseudo header fields (header
|
||||
* field starting with ':') must appear in front of regular header
|
||||
* fields. The library does not validate this requirement. The
|
||||
* application must check them if it matters.
|
||||
*
|
||||
* If the application uses `nghttp2_session_mem_recv()`, it can return
|
||||
* :enum:`NGHTTP2_ERR_PAUSE` to make `nghttp2_session_mem_recv()`
|
||||
* return without processing further input bytes. The memory pointed
|
||||
|
Loading…
Reference in New Issue
Block a user