Class: Falcon::Server
- Inherits:
-
Async::HTTP::Server
- Object
- Async::HTTP::Server
- Falcon::Server
- Defined in:
- lib/falcon/server.rb
Instance Method Summary collapse
- #handle_request(request, peer, address) ⇒ Object
-
#initialize(app, *args) ⇒ Server
constructor
A new instance of Server.
Constructor Details
#initialize(app, *args) ⇒ Server
Returns a new instance of Server.
26 27 28 29 30 |
# File 'lib/falcon/server.rb', line 26 def initialize(app, *args) super(*args) @app = app end |
Instance Method Details
#handle_request(request, peer, address) ⇒ Object
32 33 34 |
# File 'lib/falcon/server.rb', line 32 def handle_request(request, peer, address) @app.call(request, peer: peer, address: address) end |