edutap.wallet_google.session.HTTPRecorder#
- class edutap.wallet_google.session.HTTPRecorder(pool_connections=10, pool_maxsize=10, max_retries=0, pool_block=False)#
Record the HTTP requests and responses to a file.
- __init__(pool_connections=10, pool_maxsize=10, max_retries=0, pool_block=False)#
Methods
__init__
([pool_connections, pool_maxsize, ...])add_headers
(request, **kwargs)Add any headers needed by the connection.
build_response
(req, resp)Builds a
Response
object from a urllib3 response.cert_verify
(conn, url, verify, cert)Verify a SSL certificate.
close
()Disposes of any internal state.
get_connection
(url[, proxies])Returns a urllib3 connection for the given URL.
init_poolmanager
(connections, maxsize[, block])Initializes a urllib3 PoolManager.
proxy_headers
(proxy)Returns a dictionary of the headers to add to any request sent through a proxy.
proxy_manager_for
(proxy, **proxy_kwargs)Return urllib3 ProxyManager for the given proxy.
request_url
(request, proxies)Obtain the url to use when making the final request.
send
(request, *args, **kwargs)Sends PreparedRequest object.