module Kemal

Defined in:

kemal/base_log_handler.cr
kemal/cli.cr
kemal/config.cr
kemal/exception_handler.cr
kemal/file_upload.cr
kemal/filter_handler.cr
kemal/handler.cr
kemal/init_handler.cr
kemal/log_handler.cr
kemal/null_log_handler.cr
kemal/param_parser.cr
kemal/route.cr
kemal/route_handler.cr
kemal/ssl.cr
kemal/static_file_handler.cr
kemal/websocket.cr
kemal/websocket_handler.cr
kemal/helpers/exception_page.cr
kemal/helpers/utils.cr
kemal.cr

Constant Summary

VERSION = {{ (`shards version /home/sdogruyol/playground/crystal/kemal/src/kemal`).chomp.stringify }}

Class Method Summary

Class Method Detail

def self.config(&block) #

[View source]
def self.config #

[View source]
def self.display_startup_message(config, server) #

[View source]
def self.run(port : Int32?, args = ARGV) #

Overload of self.run with the default startup logging.


[View source]
def self.run(args = ARGV) #

Overload of self.run without port.


[View source]
def self.run(port : Int32? = nil, args = ARGV, &block) #

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


[View source]
def self.run(args = ARGV, &block) #

Overload of self.run to allow just a block.


[View source]
def self.stop #

[View source]