commit | d86d7b8c43df152765c7fc59a54015361b46dcde | [log] [tgz] |
---|---|---|
author | Peter Lamut <plamut@users.noreply.github.com> | Thu Dec 12 01:33:45 2019 +0100 |
committer | Tim Swast <swast@google.com> | Wed Dec 11 16:33:45 2019 -0800 |
tree | d22db003b34a9d85c3aec9599742a568c022672c | |
parent | b7f7d7d02147cd3998d0a4966b1c574a4177de84 [diff] |
feat: add timeout parameter to `AuthorizedSession.request()` (#406) * feat: add timeout to AuthorisedSession.request() * Add suport for timeout as a tuple to timeout guard The `request.Request` class also accepts a timeout as a pair (connect_timeout, read_timeout), and some downstream libraries use this form. This commit makes sure that the timeout logic correctly handles timeouts as a two-tuple. See also: https://2.python-requests.org/en/master/user/advanced/#timeouts