module Hatty

Defined in:

hatty/config.cr
hatty/handlers.cr
hatty/request.cr
hatty/response.cr
hatty/router.cr
hatty/server.cr
hatty.cr

Constant Summary

VERSION = "0.1.0"

Class Method Summary

Class Method Detail

def self.config #

Returns Hatty's configuration.

Hatty.config.disable_powered_by = true

[View source]
def self.configure(&block) #

Calls the block with Hatty's configuration.

Hatty.configure do |config|
  config.disable_powered_by = true
end

[View source]
def self.start(port = 3000) #

Starts Hatty. This is a "shortcut" for running

server = Hatty::Server.new(port: 3000)
server.start

[View source]