module Async::HTTP::Proxy::Client
Public Instance Methods
proxied_client(endpoint, headers = nil)
click to toggle source
Create a client that will proxy requests through the current client.
# File lib/async/http/proxy.rb, line 48 def proxied_client(endpoint, headers = nil) proxy = self.proxy(endpoint, headers) return self.class.new(proxy.wrap_endpoint(endpoint)) end
proxied_endpoint(endpoint, headers = nil)
click to toggle source
# File lib/async/http/proxy.rb, line 54 def proxied_endpoint(endpoint, headers = nil) proxy = self.proxy(endpoint, headers) return proxy.wrap_endpoint(endpoint) end
proxy(endpoint, headers = nil)
click to toggle source
# File lib/async/http/proxy.rb, line 43 def proxy(endpoint, headers = nil) Proxy.new(self, endpoint.authority(false), headers) end