class documentation
class _RetryingHTTP11ClientProtocol: (source)
Constructor: _RetryingHTTP11ClientProtocol(clientProtocol, newConnection)
A wrapper for HTTP11ClientProtocol that automatically retries requests.
| Method | __init__ |
Undocumented |
| Method | request |
Do a request, and retry once (with a new connection) if it fails in a retryable manner. |
| Method | _should |
Indicate whether request should be retried. |
| Instance Variable | _client |
The underlying HTTP11ClientProtocol. |
| Instance Variable | _new |
A callable that creates a new connection for a retry. |
Do a request, and retry once (with a new connection) if it fails in a retryable manner.
| Parameters | |
| request | A Request instance that will be requested using the wrapped protocol. |
Indicate whether request should be retried.
Only returns True if method is idempotent, no response was received, the reason for the failed request was not due to user-requested cancellation, and no body was sent. The latter requirement may be relaxed in the future, and PUT added to approved method list.
| Parameters | |
method:bytes | The method of the request. |
| exception | Undocumented |
| body | Undocumented |