module Athena::Routing

Overview

Athena module containing elements for:

Defined in:

routing.cr
routing/converters.cr
routing/route_handler.cr

Class Method Summary

Class Method Detail

def self.run(port : Int32 = 8888, binding : String = "0.0.0.0", ssl : OpenSSL::SSL::Context::Server | Nil | Bool | Nil = nil, handlers : Array(HTTP::Handler) = [Athena::Routing::RouteHandler.new] of HTTP::Handler) #

Starts the HTTP server with the given port, binding, ssl, and handlers.


[View source]
def self.static_file_handler : HTTP::StaticFileHandler | Nil #

Enable static file handling. Disabled by default.


[View source]
def self.static_file_handler=(static_file_handler : HTTP::StaticFileHandler | Nil) #

Enable static file handling. Disabled by default.


[View source]