proxy.http.codes module#
proxy.py#
⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on Network monitoring, controls & Application development, testing, debugging.
- copyright
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
- _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