proxyprotocol.typing

proxyprotocol.typing.SockAddr

The types that can be retured by getsockname() and getpeername().

alias of None | str | Tuple[str, int] | Tuple[str, int, int, int]

proxyprotocol.typing.Address

The types that can be returned by address attributes on ProxyProtocolResult.

alias of None | str | Tuple[IPv4Address, int] | Tuple[IPv6Address, int]

proxyprotocol.typing.Cipher

The type returned by ssl.SSLSocket.cipher().

alias of Tuple[str, str, int | None]

proxyprotocol.typing.PeerCert

The type returned by ssl.SSLSocket.getpeercert().

alias of Mapping[str, Any]

class proxyprotocol.typing.StreamReaderProtocol(*args, **kwargs)[source]

A typing abstraction intended to be compatible with StreamReader..

class proxyprotocol.typing.TransportProtocol(*args, **kwargs)[source]

A typing abstraction intended to be compatible with both BaseTransport and StreamWriter.