You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In lib/httparty.rb, there is no class method to specify a default timeout value for all calls. In lib/httparty/request.rb, the private method http looks for the :timeout key in options for setting http read timeout. Hence, using default_params class method for specifying default timeout does not work.
Currently, after including HTTParty in the class, we use
to set timeouts. But this seems more like a hack, as we are using instance variables defined by HTTParty. Is there a cleaner/better way out which we are missing?
The text was updated successfully, but these errors were encountered:
When the timeout option was added, the only use case I had in mind was on a per-request basis. Adding a global timeout option is a good idea, I'll accept the relevant patch.
In lib/httparty.rb, there is no class method to specify a default timeout value for all calls. In lib/httparty/request.rb, the private method http looks for the :timeout key in options for setting http read timeout. Hence, using default_params class method for specifying default timeout does not work.
Currently, after including HTTParty in the class, we use
to set timeouts. But this seems more like a hack, as we are using instance variables defined by HTTParty. Is there a cleaner/better way out which we are missing?
The text was updated successfully, but these errors were encountered: