class documentation

class _EndpointFactory: (source)

Implements interfaces: twisted.web.iweb.IAgentEndpointFactory

View In Hierarchy

An endpoint factory used by :class:`RequestTraversalAgent`. :ivar reactor: The agent's reactor. :type reactor: :class:`MemoryReactorClock`

Method endpointForURI Create an endpoint that represents an in-memory connection to a URI.
Instance Variable reactor Undocumented
def endpointForURI(self, uri): (source)

Create an endpoint that represents an in-memory connection to a URI. Note: This always creates a :class:`~twisted.internet.endpoints.TCP4ClientEndpoint` on the assumption :class:`RequestTraversalAgent` ignores everything about the endpoint but its port. :param uri: The URI to connect to. :type uri: :class:`~twisted.web.client.URI` :return: The endpoint. :rtype: An :class:`~twisted.internet.interfaces.IStreamClientEndpoint` provider.

reactor = (source)

Undocumented