lib/ezclient.rb in ezclient-0.3.0 vs lib/ezclient.rb in ezclient-0.4.0

- old
+ new

@@ -30,13 +30,15 @@ def persistent_client_for(url, timeout: 600) uri = HTTP::URI.parse(url) clients[uri.origin] ||= HTTP.persistent(uri.origin, timeout: timeout) end - def default_options() + def default_options { on_complete: options[:on_complete], on_error: options[:on_error], timeout: options[:default_timeout], + retry_exceptions: options[:retry_exceptions], + max_retries: options[:max_retries], } end end