The global timeout value, set using Bastion.globals().timeout() is not used by Bastion at the moment. We need to fix this and apply the timeout, only if the user has not specified a different timeout in their request.
Maybe we could have a USE_GLOBAL_TIMEOUT constant which the RequestExecutor checks for. When this constant is returned by HttpRequest.timeout(), the timeout will be whatever is set in Bastion's globals.
The global timeout value, set using
Bastion.globals().timeout()
is not used by Bastion at the moment. We need to fix this and apply the timeout, only if the user has not specified a different timeout in their request.Maybe we could have a
USE_GLOBAL_TIMEOUT
constant which theRequestExecutor
checks for. When this constant is returned byHttpRequest.timeout()
, the timeout will be whatever is set in Bastion's globals.