Make requests to a single Keep service, and track results.
A KeepService is intended to last long enough to perform one
transaction (GET or PUT) against one Keep service. This can involve
calling either get() or put() multiple times in order to retry after
transient failures. However, calling both get() and put() on a single
instance -- or using the same instance to access two different Keep
services -- will not produce sensible behavior.
|
__init__(self,
root,
user_agent_pool=queue.LifoQueue(),
upload_counter=None,
download_counter=None,
headers={},
insecure=False) |
source code
|
|
|
usable(self)
Is it worth attempting a request? |
source code
|
|
|
finished(self)
Did the request succeed or encounter permanent failure? |
source code
|
|
|
|
|
|
|
|
|
|
|
_socket_open_pycurl_7_19_3(self,
family,
socktype,
protocol,
address=None) |
source code
|
|
|
_socket_open_pycurl_7_21_5(self,
purpose,
address)
Because pycurl doesn't have CURLOPT_TCP_KEEPALIVE |
source code
|
|
|
get(self,
locator,
method="GET",
timeout=None) |
source code
|
|
|
|
|
|
|
|