class ActionController::Server
- ActionController::Server
- Reference
- Object
Included Modules
Defined in:
action-controller/server.crConstant Summary
- 
        AFTER_HANDLERS = [] of HTTP::Handler
- 
        BEFORE_HANDLERS = [] of HTTP::Handler
Constructors
Class Method Summary
- 
        .after(*handlers)
        
          Adds handlers that should run if a route is not found 
- 
        .before(*handlers)
        
          Adds handlers that should run before routes in this application 
- 
        .print_routes
        
          Used to output route details to the console from a command line switch 
Instance Method Summary
- 
        #close
        
          Terminates the application gracefully once any cluster processes have exited 
- 
        #cluster(count, short_arg, long_arg, args = ARGV.dup)
        
          Launches additional worker processes removing the short and long arguments that trigger this method 
- 
        #cluster(count)
        
          Forks additional worker processes 
- #host : String
- #port : Int32
- 
        #print_addresses
        
          Prints the addresses that the server is listening on 
- #reload
- 
        #run(&)
        
          Starts the server, providing a callback once the ports are bound 
- 
        #run
        
          Starts the server 
- 
        #socket : HTTP::Server
        
          Provides access the HTTP server for the purpose of binding For example server.socket.bind_unix "/tmp/my-socket.sock"
Instance methods inherited from module ActionController::Router
  
  
    
      delete(path : String, &block : Action)
    delete, 
    
  
    
      get(path : String, &block : Action)
    get, 
    
  
    
      head(path : String, &block : Action)
    head, 
    
  
    
      options(path : String, &block : Action)
    options, 
    
  
    
      patch(path : String, &block : Action)
    patch, 
    
  
    
      post(path : String, &block : Action)
    post, 
    
  
    
      put(path : String, &block : Action)
    put, 
    
  
    
      route_handler : RouteHandler
    route_handler
    
  
    
    
  
    
    
    
  
    
    
    
  
Constructor Detail
Class Method Detail
Instance Method Detail
Launches additional worker processes removing the short and long arguments that trigger this method
Provides access the HTTP server for the purpose of binding
For example server.socket.bind_unix "/tmp/my-socket.sock"