proxy.proxy 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.proxy.Proxy(input_args: Optional[List[str]] = None, **opts: Any)[source]#
Bases:
object
Proxy is a context manager to control proxy.py library core.
By default,
AcceptorPool
is started withHttpProtocolHandler
work class. By definition, it expects HTTP traffic to flow between clients and server.In
--threadless
mode and without--local-executor
, aThreadlessPool
is also started. Executor pool receives newly accepted work byAcceptor
and creates an instance of work class for processing the received work.In
--threadless
mode and with--local-executor 0
, acceptors will start a companion thread to handle accepted client connections.Optionally, Proxy class also initializes the EventManager. A multi-process safe pubsub system which can be used to build various patterns for message sharing and/or signaling.