[−][src]Crate libnghttp2_sys
Structs
nghttp2_session | |
nghttp2_info | @struct |
nghttp2_vec | @struct |
nghttp2_rcbuf | |
nghttp2_nv | @struct |
nghttp2_frame_hd | @struct The frame header. |
nghttp2_data_provider | @struct |
nghttp2_data | @struct |
nghttp2_priority_spec | @struct |
nghttp2_headers | @struct |
nghttp2_priority | @struct |
nghttp2_rst_stream | @struct |
nghttp2_settings_entry | @struct |
nghttp2_settings | @struct |
nghttp2_push_promise | @struct |
nghttp2_ping | @struct |
nghttp2_goaway | @struct |
nghttp2_window_update | @struct |
nghttp2_extension | @struct |
nghttp2_session_callbacks | |
nghttp2_mem | @struct |
nghttp2_option | |
nghttp2_ext_altsvc | @struct |
nghttp2_origin_entry | @struct |
nghttp2_ext_origin | @struct |
nghttp2_hd_deflater | |
nghttp2_hd_inflater | |
nghttp2_stream |
Constants
NGHTTP2_ERR_INVALID_ARGUMENT | Invalid argument passed. |
NGHTTP2_ERR_BUFFER_ERROR | Out of buffer space. |
NGHTTP2_ERR_UNSUPPORTED_VERSION | The specified protocol version is not supported. |
NGHTTP2_ERR_WOULDBLOCK | Used as a return value from :type: |
NGHTTP2_ERR_PROTO | General protocol error |
NGHTTP2_ERR_INVALID_FRAME | The frame is invalid. |
NGHTTP2_ERR_EOF | The peer performed a shutdown on the connection. |
NGHTTP2_ERR_DEFERRED | Used as a return value from
:func: |
NGHTTP2_ERR_STREAM_ID_NOT_AVAILABLE | Stream ID has reached the maximum value. Therefore no stream ID is available. |
NGHTTP2_ERR_STREAM_CLOSED | The stream is already closed; or the stream ID is invalid. |
NGHTTP2_ERR_STREAM_CLOSING | RST_STREAM has been added to the outbound queue. The stream is in closing state. |
NGHTTP2_ERR_STREAM_SHUT_WR | The transmission is not allowed for this stream (e.g., a frame with END_STREAM flag set has already sent). |
NGHTTP2_ERR_INVALID_STREAM_ID | The stream ID is invalid. |
NGHTTP2_ERR_INVALID_STREAM_STATE | The state of the stream is not valid (e.g., DATA cannot be sent to the stream if response HEADERS has not been sent). |
NGHTTP2_ERR_DEFERRED_DATA_EXIST | Another DATA frame has already been deferred. |
NGHTTP2_ERR_START_STREAM_NOT_ALLOWED | Starting new stream is not allowed (e.g., GOAWAY has been sent and/or received). |
NGHTTP2_ERR_GOAWAY_ALREADY_SENT | GOAWAY has already been sent. |
NGHTTP2_ERR_INVALID_HEADER_BLOCK | 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). |
NGHTTP2_ERR_INVALID_STATE | Indicates that the context is not suitable to perform the requested operation. |
NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE | The user callback function failed due to the temporal error. |
NGHTTP2_ERR_FRAME_SIZE_ERROR | The length of the frame is invalid, either too large or too small. |
NGHTTP2_ERR_HEADER_COMP | Header block inflate/deflate error. |
NGHTTP2_ERR_FLOW_CONTROL | Flow control error |
NGHTTP2_ERR_INSUFF_BUFSIZE | Insufficient buffer size given to function. |
NGHTTP2_ERR_PAUSE | Callback was paused by the application |
NGHTTP2_ERR_TOO_MANY_INFLIGHT_SETTINGS | There are too many in-flight SETTING frame and no more transmission of SETTINGS is allowed. |
NGHTTP2_ERR_PUSH_DISABLED | The server push is disabled. |
NGHTTP2_ERR_DATA_EXIST | 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. |
NGHTTP2_ERR_SESSION_CLOSING | The current session is closing due to a connection error or
|
NGHTTP2_ERR_HTTP_HEADER | Invalid HTTP header field was received and stream is going to be closed. |
NGHTTP2_ERR_HTTP_MESSAGING | Violation in HTTP messaging rule. |
NGHTTP2_ERR_REFUSED_STREAM | Stream was refused. |
NGHTTP2_ERR_INTERNAL | Unexpected internal error, but recovered. |
NGHTTP2_ERR_CANCEL | Indicates that a processing was canceled. |
NGHTTP2_ERR_SETTINGS_EXPECTED | When a local endpoint expects to receive SETTINGS frame, it receives an other type of frame. |
NGHTTP2_ERR_FATAL | The errors < :enum: |
NGHTTP2_ERR_NOMEM | Out of memory. This is a fatal error. |
NGHTTP2_ERR_CALLBACK_FAILURE | The user callback function failed. This is a fatal error. |
NGHTTP2_ERR_BAD_CLIENT_MAGIC | Invalid client magic (see :macro: |
NGHTTP2_ERR_FLOODED | 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. |
NGHTTP2_NV_FLAG_NONE | No flag set. |
NGHTTP2_NV_FLAG_NO_INDEX | 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". |
NGHTTP2_NV_FLAG_NO_COPY_NAME | 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. |
NGHTTP2_NV_FLAG_NO_COPY_VALUE | 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. |
NGHTTP2_DATA | The DATA frame. |
NGHTTP2_HEADERS | The HEADERS frame. |
NGHTTP2_PRIORITY | The PRIORITY frame. |
NGHTTP2_RST_STREAM | The RST_STREAM frame. |
NGHTTP2_SETTINGS | The SETTINGS frame. |
NGHTTP2_PUSH_PROMISE | The PUSH_PROMISE frame. |
NGHTTP2_PING | The PING frame. |
NGHTTP2_GOAWAY | The GOAWAY frame. |
NGHTTP2_WINDOW_UPDATE | The WINDOW_UPDATE frame. |
NGHTTP2_CONTINUATION | 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. |
NGHTTP2_ALTSVC | The ALTSVC frame, which is defined in |
NGHTTP2_ORIGIN | The ORIGIN frame, which is defined by |
NGHTTP2_FLAG_NONE | No flag set. |
NGHTTP2_FLAG_END_STREAM | The END_STREAM flag. |
NGHTTP2_FLAG_END_HEADERS | The END_HEADERS flag. |
NGHTTP2_FLAG_ACK | The ACK flag. |
NGHTTP2_FLAG_PADDED | The PADDED flag. |
NGHTTP2_FLAG_PRIORITY | The PRIORITY flag. |
NGHTTP2_SETTINGS_HEADER_TABLE_SIZE | SETTINGS_HEADER_TABLE_SIZE |
NGHTTP2_SETTINGS_ENABLE_PUSH | SETTINGS_ENABLE_PUSH |
NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS | SETTINGS_MAX_CONCURRENT_STREAMS |
NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE | SETTINGS_INITIAL_WINDOW_SIZE |
NGHTTP2_SETTINGS_MAX_FRAME_SIZE | SETTINGS_MAX_FRAME_SIZE |
NGHTTP2_SETTINGS_MAX_HEADER_LIST_SIZE | SETTINGS_MAX_HEADER_LIST_SIZE |
NGHTTP2_NO_ERROR | No errors. |
NGHTTP2_PROTOCOL_ERROR | PROTOCOL_ERROR |
NGHTTP2_INTERNAL_ERROR | INTERNAL_ERROR |
NGHTTP2_FLOW_CONTROL_ERROR | FLOW_CONTROL_ERROR |
NGHTTP2_SETTINGS_TIMEOUT | SETTINGS_TIMEOUT |
NGHTTP2_STREAM_CLOSED | STREAM_CLOSED |
NGHTTP2_FRAME_SIZE_ERROR | FRAME_SIZE_ERROR |
NGHTTP2_REFUSED_STREAM | REFUSED_STREAM |
NGHTTP2_CANCEL | CANCEL |
NGHTTP2_COMPRESSION_ERROR | COMPRESSION_ERROR |
NGHTTP2_CONNECT_ERROR | CONNECT_ERROR |
NGHTTP2_ENHANCE_YOUR_CALM | ENHANCE_YOUR_CALM |
NGHTTP2_INADEQUATE_SECURITY | INADEQUATE_SECURITY |
NGHTTP2_DATA_FLAG_NONE | No flag set. |
NGHTTP2_DATA_FLAG_EOF | Indicates EOF was sensed. |
NGHTTP2_DATA_FLAG_NO_END_STREAM | 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 |
NGHTTP2_DATA_FLAG_NO_COPY | Indicates that application will send complete DATA frame in
:type: |
NGHTTP2_HCAT_REQUEST | The HEADERS frame is opening new stream, which is analogous to SYN_STREAM in SPDY. |
NGHTTP2_HCAT_RESPONSE | The HEADERS frame is the first response headers, which is analogous to SYN_REPLY in SPDY. |
NGHTTP2_HCAT_PUSH_RESPONSE | The HEADERS frame is the first headers sent against reserved stream. |
NGHTTP2_HCAT_HEADERS | 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. |
NGHTTP2_HD_INFLATE_NONE | No flag set. |
NGHTTP2_HD_INFLATE_FINAL | Indicates all headers were inflated. |
NGHTTP2_HD_INFLATE_EMIT | Indicates a header was emitted. |
NGHTTP2_STREAM_STATE_IDLE | idle state. |
NGHTTP2_STREAM_STATE_OPEN | open state. |
NGHTTP2_STREAM_STATE_RESERVED_LOCAL | reserved (local) state. |
NGHTTP2_STREAM_STATE_RESERVED_REMOTE | reserved (remote) state. |
NGHTTP2_STREAM_STATE_HALF_CLOSED_LOCAL | half closed (local) state. |
NGHTTP2_STREAM_STATE_HALF_CLOSED_REMOTE | half closed (remote) state. |
NGHTTP2_STREAM_STATE_CLOSED | closed state. |
NGHTTP2_HTTP_1_1_REQUIRED | HTTP_1_1_REQUIRED |
Functions
Type Definitions
Unions
nghttp2_data_source | @union |
nghttp2_frame | @union |