-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support timeouts in _request_options #166
Conversation
:param op_kwargs: parameter name/value pairs to pass to the invocation | ||
of the operation. | ||
:param op_kwargs: parameter name/value pairs to passed to the | ||
invocation of the operation. | ||
:return: request in dict form | ||
""" | ||
request_options = op_kwargs.pop('_request_options', {}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mind adding .copy() here while you're at it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will create another PR to make sure _request_options
and headers
are not mutated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will fix #160 for bravado.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't look like it is an issue in bravado - https://github.com/Yelp/fido/blame/master/fido/fido.py#L171
looks good overall. |
…he timeout in HTTPFuture
Support timeouts in _request_options
So
_request_options
currently only supportsheaders
. This adds support fortimeout
andconnect_timeout
to both the Fido and Requests http clients.Fixes issue #165