proxy.http.server.protocols module#

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

  1. 2013-present by Abhinav Singh and contributors.


BSD, see LICENSE for more details.

class proxy.http.server.protocols.HttpProtocolTypes(HTTP, HTTPS, WEBSOCKET)#

Bases: tuple

HTTP: int#

Alias for field number 0

HTTPS: int#

Alias for field number 1


Alias for field number 2


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

_field_defaults = {}#
_fields = ('HTTP', 'HTTPS', 'WEBSOCKET')#
classmethod _make(iterable)#

Make a new HttpProtocolTypes object from a sequence or iterable


Return a new HttpProtocolTypes object replacing specified fields with new values