HAProxy PROXY protocol implementations.

Function proxyEndpoint Wrap an endpoint with PROXY protocol support, so that the transport's getHost and getPeer methods reflect the attributes of the proxied connection rather than the underlying connection.
def proxyEndpoint(wrappedEndpoint): (source)

Wrap an endpoint with PROXY protocol support, so that the transport's getHost and getPeer methods reflect the attributes of the proxied connection rather than the underlying connection.

ParameterswrappedEndpointThe underlying listening endpoint. (type: IStreamServerEndpoint)
Returnsa new listening endpoint that speaks the PROXY protocol. (type: IStreamServerEndpoint)
API Documentation for Twisted, generated by pydoctor at 2016-05-18 16:01:36.