Class: Radd::HTTP

Inherits:
Async::HTTP::Server
  • Object
show all
Defined in:
lib/radd/http.rb

Instance Method Summary collapse

Constructor Details

#initializeHTTP

Returns a new instance of HTTP.



2
3
4
5
6
# File 'lib/radd/http.rb', line 2

def initialize
  endpoint = Async::HTTP::Endpoint.parse("http://#{Radd.host}:#{Radd.http_port}")
  middleware = Protocol::Rack::Adapter.new(Radd::App)
  super(middleware, endpoint)
end