Module: Async::HTTP::Proxy::Client
- Included in:
- Client
- Defined in:
- lib/async/http/proxy.rb
Instance Method Summary collapse
-
#proxied_client(endpoint, headers = nil) ⇒ Object
Create a client that will proxy requests through the current client.
- #proxied_endpoint(endpoint, headers = nil) ⇒ Object
- #proxy(endpoint, headers = nil) ⇒ Object
Instance Method Details
#proxied_client(endpoint, headers = nil) ⇒ Object
Create a client that will proxy requests through the current client.
39 40 41 42 43 |
# File 'lib/async/http/proxy.rb', line 39 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) ⇒ Object
45 46 47 48 49 |
# File 'lib/async/http/proxy.rb', line 45 def proxied_endpoint(endpoint, headers = nil) proxy = self.proxy(endpoint, headers) return proxy.wrap_endpoint(endpoint) end |