module

Kemal

Constants

Log = ::Log.for(self)
VERSION = {{ (`shards version \"/tmp/tmp.lKKiLb/src/src/kemal\"`).chomp.stringify }}

Class methods

config
Source
config
Source
display_startup_message(config, server)
Source
run(port : Int32 | Nil, args = ARGV, trap_signal : Bool = true)

Overload of self.run with the default startup logging.

Source
run(args = ARGV, trap_signal : Bool = true)

Overload of self.run without port.

Source
run(port : Int32 | Nil = nil, args = ARGV, trap_signal : Bool = true, &)

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.

Source
run(args = ARGV, &block)

Overload of self.run to allow just a block.

Source
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).

Source

Nested types