module Route::HttpMethods

Direct including types

Defined in:

route/http_methods.cr

Constant Summary

HTTP_METHODS = ["get", "post", "put", "patch", "delete", "options"] of ::String

Instance Method Summary

Macro Summary

Instance Method Detail

def route_delete(path : String, proc : Proc(Context, UriParams, Context)) #

[View source]
def route_get(path : String, proc : Proc(Context, UriParams, Context)) #

[View source]
def route_options(path : String, proc : Proc(Context, UriParams, Context)) #

[View source]
def route_patch(path : String, proc : Proc(Context, UriParams, Context)) #

[View source]
def route_post(path : String, proc : Proc(Context, UriParams, Context)) #

[View source]
def route_put(path : String, proc : Proc(Context, UriParams, Context)) #

[View source]
def search_route(context : Context) : Route | Nil #

[View source]

Macro Detail

macro delete(path, proc) #

[View source]
macro get(path, proc) #

[View source]
macro http_methods #

[View source]
macro options(path, proc) #

[View source]
macro patch(path, proc) #

[View source]
macro post(path, proc) #

[View source]
macro put(path, proc) #

[View source]