struct Grip::Routers::Route

Defined in:

grip/routers/route.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(method : String, path : String, handler : HTTP::Handler, via : Array(Symbol), override : Proc(HTTP::Server::Context, HTTP::Server::Context) | Nil) #

[View source]

Instance Method Detail

def call_into_override(context : HTTP::Server::Context) : HTTP::Server::Context #

[View source]
def handler : HTTP::Handler #

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

[View source]
def match_via_keyword(context : HTTP::Server::Context, pipeline_handler : Grip::Handlers::Pipeline) : HTTP::Server::Context #

[View source]
def method : String #

[View source]
def method=(method : String) #

[View source]

[View source]
def override=(override : Nil | HTTP::Server::Context -> HTTP::Server::Context) #

[View source]
def path : String #

[View source]
def path=(path : String) #

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

[View source]
def via=(via : Array(Symbol)) #

[View source]