Kemal
Constants
Log = ::Log.for(self)
VERSION = {{ (`shards version \"/tmp/tmp.lKKiLb/src/src/kemal\"`).chomp.stringify }}
Class methods
config
Sourceconfig
Sourcedisplay_startup_message(config, server)
SourceOverload of self.run with the default startup logging.
The command to run a Kemal application.
If port is not given Kemal will use Kemal::Config#port
To use custom command line arguments, set args to nil
Returns once the server has been stopped - by Kemal.stop or by a termination
signal - and the requests that were being served at that moment have finished,
or Kemal::Config#shutdown_timeout has elapsed, whichever comes first.
stop
Stops accepting connections. Requests already being served are left to finish;
Kemal.run waits for them before it returns (see Kemal::Config#shutdown_timeout).
Nested types
- Kemal::BaseLogHandler
- Kemal::CLI
- Kemal::Config
- Kemal::EventStream
- Kemal::ExceptionHandler
- Kemal::ExceptionPage
- Kemal::Exceptions
- Kemal::FileUpload
- Kemal::Handler
- Kemal::HandlerInterface
- Kemal::HeadRequestHandler
- Kemal::InitHandler
- Kemal::LRUCache(K, V)
- Kemal::LogHandler
- Kemal::NullLogHandler
- Kemal::OverrideMethodHandler
- Kemal::ParamParser
- Kemal::PathHandler
- Kemal::Route
- Kemal::RouteHandler
- Kemal::Router
- Kemal::SSL
- Kemal::StaticFileHandler
- Kemal::Utils
- Kemal::WebSocket
- Kemal::WebSocketHandler