Class: Barista::Server::Proxy
- Inherits:
-
Object
- Object
- Barista::Server::Proxy
- Defined in:
- lib/barista/server.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ Proxy
constructor
A new instance of Proxy.
Constructor Details
Instance Method Details
#call(env) ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/barista/server.rb', line 30 def call(env) result = @server.call(env) if result[0] == 404 @app.call(env) else result end end |