t.w.c._RetryingHTTP11ClientProtocol(object) : class documentation

Part of twisted.web.client View Source View In Hierarchy

A wrapper for HTTP11ClientProtocol that automatically retries requests.
Method __init__ Undocumented
Method request Do a request, and retry once (with a new connection) it it fails in a retryable manner.
Instance Variable _clientProtocol The underlying HTTP11ClientProtocol.
Instance Variable _newConnection A callable that creates a new connection for a retry.
Method _shouldRetry Indicate whether request should be retried.
_clientProtocol =
The underlying HTTP11ClientProtocol.
_newConnection =
A callable that creates a new connection for a retry.
def __init__(self, clientProtocol, newConnection): (source)
Undocumented
def _shouldRetry(self, method, exception, bodyProducer): (source)
Indicate whether request should be retried.

Only returns True if method is idempotent, no response was received, and no body was sent. The latter requirement may be relaxed in the future, and PUT added to approved method list.

def request(self, request): (source)
Do a request, and retry once (with a new connection) it it fails in a retryable manner.
ParametersrequestA Request instance that will be requested using the wrapped protocol.
API Documentation for Twisted, generated by pydoctor at 2012-12-26 12:18:15.