class documentation

class RequestTraversalAgent: (source)

Implements interfaces: twisted.web.iweb.IAgent

View In Hierarchy

:obj:`~twisted.web.iweb.IAgent` implementation that issues an in-memory request rather than going out to a real network socket.

Method __init__ :param rootResource: The Twisted `IResource` at the root of the resource tree.
Method flush Flush all data between pending client/server pairs.
Method request Implement IAgent.request.
Instance Variable _memoryReactor Undocumented
Instance Variable _pumps Undocumented
Instance Variable _realAgent Undocumented
Instance Variable _rootResource Undocumented
Instance Variable _serverFactory Undocumented
def __init__(self, rootResource): (source)

:param rootResource: The Twisted `IResource` at the root of the resource tree.

def flush(self): (source)

Flush all data between pending client/server pairs. This is only necessary if a :obj:`Resource` under test returns :obj:`NOT_DONE_YET` from its ``render`` method, making a response asynchronous. In that case, after each write from the server, :meth:`flush()` must be called so the client can see it.

def request(self, method, uri, headers=None, bodyProducer=None): (source)

Implement IAgent.request.

_memoryReactor = (source)

Undocumented

_pumps = (source)

Undocumented

_realAgent = (source)

Undocumented

_rootResource = (source)

Undocumented

_serverFactory = (source)

Undocumented