@struct The frame header.
The ALTSVC frame, which is defined in
The CONTINUATION frame. This frame type won't be passed to any callbacks because the library processes this frame type and its preceding HEADERS/PUSH_PROMISE as a single frame.
The DATA frame.
Indicates EOF was sensed.
No flag set.
Indicates that application will send complete DATA frame in
Indicates that END_STREAM flag must not be set even if
NGHTTP2_DATA_FLAG_EOF is set. Usually this flag is used to send
trailer fields with
Invalid client magic (see :macro:
Out of buffer space.
The user callback function failed. This is a fatal error.
Indicates that a processing was canceled.
DATA or HEADERS frame for a given stream has been already submitted and has not been fully processed yet. Application should wait for the transmission of the previously submitted frame before submitting another.
Used as a return value from
Another DATA frame has already been deferred.
The peer performed a shutdown on the connection.
The errors < :enum:
Possible flooding by peer was detected in this HTTP/2 session. Flooding is measured by how many PING and SETTINGS frames with ACK flag set are queued for transmission. These frames are response for the peer initiated frames, and peer can cause memory exhaustion on server side to send these frames forever and does not read network.
Flow control error
The length of the frame is invalid, either too large or too small.
GOAWAY has already been sent.
Header block inflate/deflate error.
Invalid HTTP header field was received and stream is going to be closed.
Violation in HTTP messaging rule.
Insufficient buffer size given to function.
Unexpected internal error, but recovered.
Invalid argument passed.
The frame is invalid.
The received frame contains the invalid header block (e.g., There are duplicate header names; or the header names are not encoded in US-ASCII character set and not lower cased; or the header name is zero-length string; or the header value contains multiple in-sequence NUL bytes).
Indicates that the context is not suitable to perform the requested operation.
The stream ID is invalid.
The state of the stream is not valid (e.g., DATA cannot be sent to the stream if response HEADERS has not been sent).
Out of memory. This is a fatal error.
Callback was paused by the application
General protocol error
The server push is disabled.
Stream was refused.
The current session is closing due to a connection error or
When a local endpoint expects to receive SETTINGS frame, it receives an other type of frame.
Starting new stream is not allowed (e.g., GOAWAY has been sent and/or received).
The stream is already closed; or the stream ID is invalid.
RST_STREAM has been added to the outbound queue. The stream is in closing state.
Stream ID has reached the maximum value. Therefore no stream ID is available.
The transmission is not allowed for this stream (e.g., a frame with END_STREAM flag set has already sent).
The user callback function failed due to the temporal error.
There are too many in-flight SETTING frame and no more transmission of SETTINGS is allowed.
The specified protocol version is not supported.
Used as a return value from :type:
The ACK flag.
The END_HEADERS flag.
The END_STREAM flag.
No flag set.
The PADDED flag.
The PRIORITY flag.
The GOAWAY frame.
The HEADERS frame which does not apply for the above categories, which is analogous to HEADERS in SPDY. If non-final response (e.g., status 1xx) is used, final response HEADERS frame will be categorized here.
The HEADERS frame is the first headers sent against reserved stream.
The HEADERS frame is opening new stream, which is analogous to SYN_STREAM in SPDY.
The HEADERS frame is the first response headers, which is analogous to SYN_REPLY in SPDY.
Indicates a header was emitted.
Indicates all headers were inflated.
No flag set.
The HEADERS frame.
No flag set.
This flag is set solely by application. If this flag is set, the library does not make a copy of header field name. This could improve performance.
This flag is set solely by application. If this flag is set, the library does not make a copy of header field value. This could improve performance.
Indicates that this name/value pair must not be indexed ("Literal Header Field never Indexed" representation must be used in HPACK encoding). Other implementation calls this bit as "sensitive".
The ORIGIN frame, which is defined by
The PING frame.
The PRIORITY frame.
The PUSH_PROMISE frame.
The RST_STREAM frame.
The SETTINGS frame.
half closed (local) state.
half closed (remote) state.
reserved (local) state.
reserved (remote) state.
The WINDOW_UPDATE frame.