Method: Explorer::Server::HTTP#initialize
- Defined in:
- lib/explorer/server/http.rb
#initialize(port, options = {}) ⇒ HTTP
Returns a new instance of HTTP.
6 7 8 9 10 |
# File 'lib/explorer/server/http.rb', line 6 def initialize(port, ={}) @map = .fetch(:hostmap) { Explorer.hostmap } super '0.0.0.0', port, {}, &method(:on_connection) end |