proxy.core.connection.server 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.core.connection.server.TcpServerConnection(host: str, port: int)[source]#

Bases: proxy.core.connection.connection.TcpConnection

A buffered server connection object.

_abc_impl = <_abc._abc_data object>#
_conn: Optional[TcpOrTlsSocket]#
_reusable: bool#
addr: HostPort#
buffer: List[memoryview]#
closed: bool#
connect(addr: Optional[Tuple[str, int]] = None, source_address: Optional[Tuple[str, int]] = None) None[source]#
property connection: Union[ssl.SSLSocket, socket.socket]#

Must return the socket connection to use in this class.

tag: str#
wrap(hostname: Optional[str] = None, ca_file: Optional[str] = None, as_non_blocking: bool = False, verify_mode: ssl.VerifyMode = VerifyMode.CERT_REQUIRED) None[source]#