Merge branch 'instance-vars'

This commit is contained in:
Sdogruyol 2016-04-17 00:04:53 +03:00
commit a8ecbde222
18 changed files with 48 additions and 36 deletions

View file

@ -9,12 +9,12 @@ module Kemal
config.add_handler Kemal::RouteHandler::INSTANCE
config.server = HTTP::Server.new(config.host_binding.not_nil!, config.port, config.handlers)
config.server.ssl = config.ssl
config.server.not_nil!.ssl = config.ssl
unless config.env == "test"
Signal::INT.trap {
config.logger.write "Kemal is going to take a rest!\n"
config.server.close
config.server.not_nil!.close
exit
}
@ -32,7 +32,7 @@ module Kemal
end
config.logger.write "[#{config.env}] Kemal is ready to lead at #{config.scheme}://#{config.host_binding}:#{config.port}\n"
config.server.listen
config.server.not_nil!.listen
end
end
end