proxy.core.base.tcp_upstream 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.core.base.tcp_upstream.TcpUpstreamConnectionHandler(*args: Any, **kwargs: Any)[source]#
Bases:
abc.ABC
TcpUpstreamConnectionHandler
can be used to insert an upstream server connection lifecycle.Call
initialize_upstream
to initialize the upstream connection object. Then, directly useself.upstream
object within your class.See
ProxyPoolPlugin
for example usage.- _abc_impl = <_abc._abc_data object>#
- abstract handle_upstream_data(raw: memoryview) None [source]#
- upstream: Optional[proxy.core.connection.server.TcpServerConnection]#