class documentation
class _EndpointFactory: (source)
Implements interfaces: twisted.web.iweb.IAgentEndpointFactory
An endpoint factory used by :class:`RequestTraversalAgent`. :ivar reactor: The agent's reactor. :type reactor: :class:`MemoryReactorClock`
Method | endpoint |
Create an endpoint that represents an in-memory connection to a URI. |
Instance Variable | reactor |
Undocumented |
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.