Class: Specter::Middleware::Proxy
- Defined in:
- lib/specter/middleware/proxy.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, server) ⇒ Proxy
constructor
A new instance of Proxy.
Constructor Details
#initialize(app, server) ⇒ Proxy
Returns a new instance of Proxy.
7 8 9 10 |
# File 'lib/specter/middleware/proxy.rb', line 7 def initialize(app, server) super @miner = Expedition::Client.new(*[:proxy]) end |
Instance Method Details
#call(env) ⇒ Object
12 13 14 15 |
# File 'lib/specter/middleware/proxy.rb', line 12 def call(env) env.merge!(proxy_command(env)) @app.call(env) end |