HTTP Constant Enumerations

This module contains all constant enumerations of HTTP implementations. Available enumerations include:

HTTP_ErrorCode

HTTP/2 Error Code *

HTTP_Frame

HTTP/2 Frame Type

HTTP_Setting

HTTP/2 Settings

HTTP/2 Error Code

This module contains the constant enumeration for HTTP/2 Error Code, which is automatically generated from pcapkit.vendor.http.error_code.ErrorCode.

class pcapkit.const.http.error_code.ErrorCode(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

[ErrorCode] HTTP/2 Error Code

NO_ERROR = 0

NO_ERROR, Graceful shutdown [:rfc:`9113, Section 7`]

PROTOCOL_ERROR = 1

PROTOCOL_ERROR, Protocol error detected [:rfc:`9113, Section 7`]

INTERNAL_ERROR = 2

INTERNAL_ERROR, Implementation fault [:rfc:`9113, Section 7`]

FLOW_CONTROL_ERROR = 3

FLOW_CONTROL_ERROR, Flow-control limits exceeded [:rfc:`9113, Section 7`]

SETTINGS_TIMEOUT = 4

SETTINGS_TIMEOUT, Settings not acknowledged [:rfc:`9113, Section 7`]

STREAM_CLOSED = 5

STREAM_CLOSED, Frame received for closed stream [:rfc:`9113, Section 7`]

FRAME_SIZE_ERROR = 6

FRAME_SIZE_ERROR, Frame size incorrect [:rfc:`9113, Section 7`]

REFUSED_STREAM = 7

REFUSED_STREAM, Stream not processed [:rfc:`9113, Section 7`]

CANCEL = 8

CANCEL, Stream cancelled [:rfc:`9113, Section 7`]

COMPRESSION_ERROR = 9

COMPRESSION_ERROR, Compression state not updated [:rfc:`9113, Section 7`]

CONNECT_ERROR = 10

9113, Section 7]

Type

CONNECT_ERROR, TCP connection error for CONNECT method [

Type

rfc

ENHANCE_YOUR_CALM = 11

ENHANCE_YOUR_CALM, Processing capacity exceeded [:rfc:`9113, Section 7`]

INADEQUATE_SECURITY = 12

9113, Section 7]

Type

INADEQUATE_SECURITY, Negotiated TLS parameters not acceptable [

Type

rfc

HTTP_1_1_REQUIRED = 13

HTTP_1_1_REQUIRED, Use HTTP/1.1 for the request [:rfc:`9113, Section 7`]

classmethod _missing_(value)[source]

Lookup function used when value is not found.

Parameters

value (int) – Value to get enum item.

Return type

ErrorCode

HTTP/2 Frame Type

This module contains the constant enumeration for HTTP/2 Frame Type, which is automatically generated from pcapkit.vendor.http.frame.Frame.

class pcapkit.const.http.frame.Frame(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

[Frame] HTTP/2 Frame Type

DATA = 0

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

HEADERS = 1

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

PRIORITY = 2

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

RST_STREAM = 3

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

SETTINGS = 4

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

PUSH_PROMISE = 5

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

PING = 6

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

GOAWAY = 7

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

WINDOW_UPDATE = 8

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

CONTINUATION = 9

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

ALTSVC = 10

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

Unassigned_0x0B = 11

Unassigned

ORIGIN = 12

ORIGIN [RFC 8336]

PRIORITY_UPDATE = 16

PRIORITY_UPDATE [RFC 9218]

classmethod _missing_(value)[source]

Lookup function used when value is not found.

Parameters

value (int) – Value to get enum item.

Return type

Frame

HTTP/2 Settings

This module contains the constant enumeration for HTTP/2 Settings, which is automatically generated from pcapkit.vendor.http.setting.Setting.

class pcapkit.const.http.setting.Setting(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

[Setting] HTTP/2 Settings

Reserved_0x0000 = 0

Reserved [RFC 9113]

HEADER_TABLE_SIZE = 1
Type

HEADER_TABLE_SIZE [:rfc:`9113, Section 6.5.2`] (Initial Value

ENABLE_PUSH = 2
Type

ENABLE_PUSH [:rfc:`9113, Section 6.5.2`] (Initial Value

MAX_CONCURRENT_STREAMS = 3

MAX_CONCURRENT_STREAMS [:rfc:`9113, Section 6.5.2`] (Initial Value: infinite)

INITIAL_WINDOW_SIZE = 4
Type

INITIAL_WINDOW_SIZE [:rfc:`9113, Section 6.5.2`] (Initial Value

MAX_FRAME_SIZE = 5
Type

MAX_FRAME_SIZE [:rfc:`9113, Section 6.5.2`] (Initial Value

MAX_HEADER_LIST_SIZE = 6

MAX_HEADER_LIST_SIZE [:rfc:`9113, Section 6.5.2`] (Initial Value: infinite)

Unassigned_0x0007 = 7

Unassigned

SETTINGS_ENABLE_CONNECT_PROTOCOL = 8
Type

SETTINGS_ENABLE_CONNECT_PROTOCOL [RFC 8441] (Initial Value

SETTINGS_NO_RFC7540_PRIORITIES = 9
Type

SETTINGS_NO_RFC7540_PRIORITIES [RFC 9218] (Initial Value

TLS_RENEG_PERMITTED = 16

TLS_RENEG_PERMITTED [MS-HTTP2E][Gabriel Montenegro] (Initial Value: 0x00)

classmethod _missing_(value)[source]

Lookup function used when value is not found.

Parameters

value (int) – Value to get enum item.

Return type

Setting


*

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