proxy.http.parser.types 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.parser.types.HttpParserStates(INITIALIZED, LINE_RCVD, RCVING_HEADERS, HEADERS_COMPLETE, RCVING_BODY, COMPLETE)#

Bases: tuple

COMPLETE: int#

Alias for field number 5

HEADERS_COMPLETE: int#

Alias for field number 3

INITIALIZED: int#

Alias for field number 0

LINE_RCVD: int#

Alias for field number 1

RCVING_BODY: int#

Alias for field number 4

RCVING_HEADERS: int#

Alias for field number 2

_asdict()#

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

_field_defaults = {}#
_fields = ('INITIALIZED', 'LINE_RCVD', 'RCVING_HEADERS', 'HEADERS_COMPLETE', 'RCVING_BODY', 'COMPLETE')#
classmethod _make(iterable)#

Make a new HttpParserStates object from a sequence or iterable

_replace(**kwds)#

Return a new HttpParserStates object replacing specified fields with new values

class proxy.http.parser.types.HttpParserTypes(REQUEST_PARSER, RESPONSE_PARSER)#

Bases: tuple

REQUEST_PARSER: int#

Alias for field number 0

RESPONSE_PARSER: int#

Alias for field number 1

_asdict()#

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

_field_defaults = {}#
_fields = ('REQUEST_PARSER', 'RESPONSE_PARSER')#
classmethod _make(iterable)#

Make a new HttpParserTypes object from a sequence or iterable

_replace(**kwds)#

Return a new HttpParserTypes object replacing specified fields with new values