proxy.http.codes module#

proxy.py#

⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on Network monitoring, controls & Application development, testing, debugging.

copyright
  1. 2013-present by Abhinav Singh and contributors.

license

BSD, see LICENSE for more details.

class proxy.http.codes.HttpStatusCodes(CONTINUE, SWITCHING_PROTOCOLS, OK, MOVED_PERMANENTLY, SEE_OTHER, TEMPORARY_REDIRECT, PERMANENT_REDIRECT, BAD_REQUEST, UNAUTHORIZED, FORBIDDEN, NOT_FOUND, PROXY_AUTH_REQUIRED, REQUEST_TIMEOUT, I_AM_A_TEAPOT, INTERNAL_SERVER_ERROR, NOT_IMPLEMENTED, BAD_GATEWAY, GATEWAY_TIMEOUT, NETWORK_READ_TIMEOUT_ERROR, NETWORK_CONNECT_TIMEOUT_ERROR)#

Bases: tuple

BAD_GATEWAY: int#

Alias for field number 16

BAD_REQUEST: int#

Alias for field number 7

CONTINUE: int#

Alias for field number 0

FORBIDDEN: int#

Alias for field number 9

GATEWAY_TIMEOUT: int#

Alias for field number 17

INTERNAL_SERVER_ERROR: int#

Alias for field number 14

I_AM_A_TEAPOT: int#

Alias for field number 13

MOVED_PERMANENTLY: int#

Alias for field number 3

NETWORK_CONNECT_TIMEOUT_ERROR: int#

Alias for field number 19

NETWORK_READ_TIMEOUT_ERROR: int#

Alias for field number 18

NOT_FOUND: int#

Alias for field number 10

NOT_IMPLEMENTED: int#

Alias for field number 15

OK: int#

Alias for field number 2

PERMANENT_REDIRECT: int#

Alias for field number 6

PROXY_AUTH_REQUIRED: int#

Alias for field number 11

REQUEST_TIMEOUT: int#

Alias for field number 12

SEE_OTHER: int#

Alias for field number 4

SWITCHING_PROTOCOLS: int#

Alias for field number 1

TEMPORARY_REDIRECT: int#

Alias for field number 5

UNAUTHORIZED: int#

Alias for field number 8

_asdict()#

Return a new dict which maps field names to their values.

_field_defaults = {}#
_fields = ('CONTINUE', 'SWITCHING_PROTOCOLS', 'OK', 'MOVED_PERMANENTLY', 'SEE_OTHER', 'TEMPORARY_REDIRECT', 'PERMANENT_REDIRECT', 'BAD_REQUEST', 'UNAUTHORIZED', 'FORBIDDEN', 'NOT_FOUND', 'PROXY_AUTH_REQUIRED', 'REQUEST_TIMEOUT', 'I_AM_A_TEAPOT', 'INTERNAL_SERVER_ERROR', 'NOT_IMPLEMENTED', 'BAD_GATEWAY', 'GATEWAY_TIMEOUT', 'NETWORK_READ_TIMEOUT_ERROR', 'NETWORK_CONNECT_TIMEOUT_ERROR')#
classmethod _make(iterable)#

Make a new HttpStatusCodes object from a sequence or iterable

_replace(**kwds)#

Return a new HttpStatusCodes object replacing specified fields with new values