class Grip::Application

Overview

Grip::Application is a building class which initializes the crucial parts of the web-framework.

Included Modules

Defined in:

grip/application.cr

Constructors

Instance Method Summary

Macros inherited from module Grip::Macros::Dsl

delete(route, resource, **kwargs) delete, exception(exception, resource) exception, exceptions(exceptions, resource) exceptions, forward(route, resource, **kwargs) forward, get(route, resource, **kwargs) get, head(route, resource, **kwargs) head, options(route, resource, **kwargs) options, patch(route, resource, **kwargs) patch, pipe_through(valve) pipe_through, pipeline(name, pipes) pipeline, post(route, resource, **kwargs) post, put(route, resource, **kwargs) put, scope(path) scope, static(source, destination, **kwargs) static, ws(route, resource, **kwargs) ws

Constructor Detail

def self.new(environment : String = "development") #

[View source]

Instance Method Detail

def cert_file : String #

[View source]
def environment : String #

[View source]
def exception_handler : Grip::Handlers::Exception #

[View source]
def host : String #

[View source]
def http_handler : Grip::Routers::Http #

[View source]
def key_file : String #

[View source]
def pipeline_handler : Grip::Handlers::Pipeline #

[View source]
def port : Int32 #

[View source]
def reuse_port : Bool #

[View source]
def router : Array(HTTP::Handler) #

[View source]
def router=(router : Array(HTTP::Handler)) #

[View source]
def run #

[View source]
def scopes : Array(String) #

[View source]
def server : HTTP::Server #

[View source]
def ssl : Bool #

[View source]
def static_handlers : Array(Grip::Handlers::Static) #

[View source]
def valve : Symbol | Nil #

[View source]
def valves : Array(Symbol) #

[View source]
def websocket_handler : Grip::Routers::WebSocket #

[View source]