abstract class Grip::Application

Overview

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

class Application < Grip::Application
  def routes
    pipeline :api, [
      Pipes::PoweredByHeader.new,
    ]
  end
end

app = Application.new
app.run

Included Modules

Defined in:

grip/application.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def authorizations : Array(Swagger::Authorization) #

[View source]
def cert_file : String #

[View source]
def contact : Swagger::Contact | Nil #

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

[View source]
def description : String #

[View source]
def document : Swagger::Builder #

[View source]
def host : String #

[View source]
def key_file : String #

[View source]
def license : Swagger::License | Nil #

[View source]
def port : Int32 #

[View source]
def reuse_port : Bool #

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

[View source]
abstract def routes #

[View source]
def run #

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

[View source]
def ssl : Bool #

[View source]
def terms_url : String #

[View source]
def title : String #

[View source]
def version : String #

[View source]