# -*- coding: utf-8 -*- """ proxy.py ~~~~~~~~ ⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on Network monitoring, controls & Application development, testing, debugging. :copyright: (c) 2013-present by Abhinav Singh and contributors. :license: BSD, see LICENSE for more details. """ from typing import NamedTuple HttpMethods = NamedTuple('HttpMethods', [ ('GET', bytes), ('HEAD', bytes), ('POST', bytes), ('PUT', bytes), ('DELETE', bytes), ('CONNECT', bytes), ('OPTIONS', bytes), ('TRACE', bytes), ('PATCH', bytes), ]) httpMethods = HttpMethods( b'GET', b'HEAD', b'POST', b'PUT', b'DELETE', b'CONNECT', b'OPTIONS', b'TRACE', b'PATCH', )