class Grip::Application
- Grip::Application
- Reference
- Object
Overview
Grip::Application
is a building class which initializes the crucial parts of the
web-framework.
Included Modules
Defined in:
grip/application.crConstant Summary
-
DEFAULT_ENVIRONMENT =
"development"
-
DEFAULT_HOST =
"0.0.0.0"
-
DEFAULT_PORT =
4004
-
DEFAULT_REUSE_PORT =
false
Constructors
Instance Method Summary
- #cert_file : String
- #environment : String
- #environment=(environment : String)
- #handlers : Array(HTTP::Handler)
- #host : String
- #host=(host : String)
-
#key_file : String
SSL/TLS configuration
- #port : Int32
- #port=(port : Int32)
- #reuse_port=(reuse_port : Bool)
- #reuse_port? : Bool
- #run
- #scheme : String
- #scopes : Array(String)
-
#server : HTTP::Server
Server setup and running
- #ssl : Bool
- #valve : Symbol | Nil
- #valves : Array(Symbol)
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,
ws(route, resource, **kwargs)
ws
Constructor Detail
def self.new(environment : String = DEFAULT_ENVIRONMENT, host : String = DEFAULT_HOST, port : Int32 = DEFAULT_PORT, reuse_port : Bool = DEFAULT_REUSE_PORT, handlers : Array(HTTP::Handler) = [] of HTTP::Handler)
#