Method: Async::HTTP::Server#initialize
- Defined in:
- lib/async/http/server.rb
#initialize(app, endpoint, protocol = endpoint.protocol, scheme = endpoint.scheme) ⇒ Server
Returns a new instance of Server.
36 37 38 39 40 41 42 |
# File 'lib/async/http/server.rb', line 36 def initialize(app, endpoint, protocol = endpoint.protocol, scheme = endpoint.scheme) super(app) @endpoint = endpoint @protocol = protocol @scheme = scheme end |