HTTP Constant Enumerations

HTTP/2 Error Code *

class pcapkit.const.http.error_code.ErrorCode(*args, **kwds)[source]

Bases: aenum.IntEnum

[ErrorCode] HTTP/2 Error Code

classmethod _missing_(value)[source]

Lookup function used when value is not found.

static get(key, default=- 1)[source]

Backport support for original codes.

CANCEL = 8
COMPRESSION_ERROR = 9
CONNECT_ERROR = 10
ENHANCE_YOUR_CALM = 11
FLOW_CONTROL_ERROR = 3
FRAME_SIZE_ERROR = 6
HTTP_1_1_REQUIRED = 13
INADEQUATE_SECURITY = 12
INTERNAL_ERROR = 2
NO_ERROR = 0
PROTOCOL_ERROR = 1
REFUSED_STREAM = 7
SETTINGS_TIMEOUT = 4
STREAM_CLOSED = 5

HTTP/2 Frame Type

class pcapkit.const.http.frame.Frame(*args, **kwds)[source]

Bases: aenum.IntEnum

[Frame] HTTP/2 Frame Type

classmethod _missing_(value)[source]

Lookup function used when value is not found.

static get(key, default=- 1)[source]

Backport support for original codes.

ALTSVC = 10
CONTINUATION = 9
DATA = 0
GOAWAY = 7
HEADERS = 1
ORIGIN = 12
PING = 6
PRIORITY = 2
PUSH_PROMISE = 5
RST_STREAM = 3
SETTINGS = 4
Unassigned = 11
WINDOW_UPDATE = 8

HTTP/2 Settings

class pcapkit.const.http.setting.Setting(*args, **kwds)[source]

Bases: aenum.IntEnum

[Setting] HTTP/2 Settings

classmethod _missing_(value)[source]

Lookup function used when value is not found.

static get(key, default=- 1)[source]

Backport support for original codes.

ENABLE_PUSH = 2
HEADER_TABLE_SIZE = 1
INITIAL_WINDOW_SIZE = 4
MAX_CONCURRENT_STREAMS = 3
MAX_FRAME_SIZE = 5
MAX_HEADER_LIST_SIZE = 6
Reserved = 0
SETTINGS_ENABLE_CONNECT_PROTOCOL = 8
TLS_RENEG_PERMITTED = 16
Unassigned = 7

*

https://www.iana.org/assignments/http2-parameters/http2-parameters.xhtml#error-code

https://www.iana.org/assignments/http2-parameters/http2-parameters.xhtml#frame-type

https://www.iana.org/assignments/http2-parameters/http2-parameters.xhtml#settings