proxy.http.protocols 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.protocols.HttpProtocols(UNKNOWN, WEB_SERVER, HTTP_PROXY, SOCKS_PROXY)#

Bases: tuple

HTTP_PROXY: int#

Alias for field number 2

SOCKS_PROXY: int#

Alias for field number 3

UNKNOWN: int#

Alias for field number 0

WEB_SERVER: int#

Alias for field number 1

_asdict()#

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

_field_defaults = {}#
_fields = ('UNKNOWN', 'WEB_SERVER', 'HTTP_PROXY', 'SOCKS_PROXY')#
classmethod _make(iterable)#

Make a new HttpProtocols object from a sequence or iterable

_replace(**kwds)#

Return a new HttpProtocols object replacing specified fields with new values