module Hatty
Defined in:
hatty/config.crhatty/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
-
.config
Returns Hatty's configuration.
-
.configure(&block)
Calls the block with Hatty's configuration.
-
.start(port = 3000)
Starts Hatty.
Class Method Detail
def self.configure(&block)
#
Calls the block with Hatty's configuration.
Hatty.configure do |config|
config.disable_powered_by = true
end
def self.start(port = 3000)
#
Starts Hatty. This is a "shortcut" for running
server = Hatty::Server.new(port: 3000)
server.start