module Athena::Routing
Overview
Athena module containing elements for:
- Defining routes.
- Defining life-cycle callbacks.
- Manage response serialization.
- Handle param conversion.
Defined in:
routing.crrouting/converters.cr
routing/route_handler.cr
Class Method Summary
- 
        .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. 
- 
        .static_file_handler : HTTP::StaticFileHandler | Nil
        
          Enable static file handling. 
- 
        .static_file_handler=(static_file_handler : HTTP::StaticFileHandler | Nil)
        
          Enable static file handling. 
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.
        
        def self.static_file_handler : HTTP::StaticFileHandler | Nil
        #
      
      
        Enable static file handling. Disabled by default.
        
        def self.static_file_handler=(static_file_handler : HTTP::StaticFileHandler | Nil)
        #
      
      
        Enable static file handling. Disabled by default.