HTTP Constant Enumerations

HTTP/2 Error Code *

class pcapkit.const.http.error_code.ErrorCode(value=<no_arg>, names=None, module=None, type=None, start=1, boundary=None)[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

desc

COMPRESSION_ERROR = 9

desc

CONNECT_ERROR = 10

desc

ENHANCE_YOUR_CALM = 11

desc

FLOW_CONTROL_ERROR = 3

desc

FRAME_SIZE_ERROR = 6

desc

HTTP_1_1_REQUIRED = 13

desc

INADEQUATE_SECURITY = 12

desc

INTERNAL_ERROR = 2

desc

NO_ERROR = 0

desc

PROTOCOL_ERROR = 1

desc

REFUSED_STREAM = 7

desc

SETTINGS_TIMEOUT = 4

desc

STREAM_CLOSED = 5

desc

HTTP/2 Frame Type

class pcapkit.const.http.frame.Frame(value=<no_arg>, names=None, module=None, type=None, start=1, boundary=None)[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

ALTSVC [:rfc:`7838, Section 4`]

CONTINUATION = 9

CONTINUATION [:rfc:`7540, Section 6.10`]

DATA = 0

DATA [:rfc:`7540, Section 6.1`]

GOAWAY = 7

GOAWAY [:rfc:`7540, Section 6.8`]

HEADERS = 1

HEADERS [:rfc:`7540, Section 6.2`]

ORIGIN = 12

ORIGIN [RFC 8336]

PING = 6

PING [:rfc:`7540, Section 6.7`]

PRIORITY = 2

PRIORITY [:rfc:`7540, Section 6.3`]

PUSH_PROMISE = 5

PUSH_PROMISE [:rfc:`7540, Section 6.6`]

RST_STREAM = 3

RST_STREAM [:rfc:`7540, Section 6.4`]

SETTINGS = 4

SETTINGS [:rfc:`7540, Section 6.5`]

Unassigned = 11

Unassigned

WINDOW_UPDATE = 8

WINDOW_UPDATE [:rfc:`7540, Section 6.9`]

HTTP/2 Settings

class pcapkit.const.http.setting.Setting(value=<no_arg>, names=None, module=None, type=None, start=1, boundary=None)[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

ENABLE_PUSH [:rfc:`7540, Section 6.5.2`] 1

HEADER_TABLE_SIZE = 1

HEADER_TABLE_SIZE [:rfc:`7540, Section 6.5.2`] 4096

INITIAL_WINDOW_SIZE = 4

INITIAL_WINDOW_SIZE [:rfc:`7540, Section 6.5.2`] 65535

MAX_CONCURRENT_STREAMS = 3

MAX_CONCURRENT_STREAMS [:rfc:`7540, Section 6.5.2`] infinite

MAX_FRAME_SIZE = 5

MAX_FRAME_SIZE [:rfc:`7540, Section 6.5.2`] 16384

MAX_HEADER_LIST_SIZE = 6

MAX_HEADER_LIST_SIZE [:rfc:`7540, Section 6.5.2`] infinite

Reserved = 0

Reserved [RFC 7540]

SETTINGS_ENABLE_CONNECT_PROTOCOL = 8

SETTINGS_ENABLE_CONNECT_PROTOCOL [RFC 8441] 0

TLS_RENEG_PERMITTED = 16

TLS_RENEG_PERMITTED [MS-HTTP2E][Gabriel Montenegro] 0x00

Unassigned = 7

Unassigned


*

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