Configurable read timeout (#108)

This commit is contained in:
Alex Ling
2020-10-15 11:51:04 +00:00
parent 3bb0917374
commit 853f422964
3 changed files with 14 additions and 1 deletions

View File

@@ -5,7 +5,7 @@ require "http_proxy"
module HTTP
class Client
private def self.exec(uri : URI, tls : TLSContext = nil)
Logger.debug "Using monkey-patched HTTP::Client"
Logger.debug "Setting proxy"
previous_def uri, tls do |client, path|
client.set_proxy get_proxy uri
yield client, path