abstract class Lucky::Action
- Lucky::Action
- Reference
- Object
Included Modules
- Lucky::ActionDelegates
- Lucky::ActionPipes
- Lucky::Exposable
- Lucky::Memoizable
- Lucky::ParamHelpers
- Lucky::Redirectable
- Lucky::Renderable
- Lucky::RequestTypeHelpers
- Lucky::Routable
- Lucky::VerifyAcceptsFormat
Defined in:
lucky/action.crConstant Summary
-
AFTER_PIPES =
[] of Symbol
-
BEFORE_PIPES =
[verify_accepted_format] of Symbol
-
EXPOSURES =
[] of Symbol
-
PARAM_DECLARATIONS =
[] of Crystal::Macros::TypeDeclaration
-
SKIPPED_PIPES =
[] of Symbol
Constructors
Class Method Summary
Instance Method Summary
- #call
- #context : HTTP::Server::Context
- #cookies(*args, **options)
- #cookies(*args, **options, &)
- #flash(*args, **options)
- #flash(*args, **options, &)
- #request(*args, **options)
- #request(*args, **options, &)
- #response(*args, **options)
- #response(*args, **options, &)
- #route_params : Hash(String, String)
- #session(*args, **options)
- #session(*args, **options, &)
Instance methods inherited from module Lucky::VerifyAcceptsFormat
clients_desired_format : Symbol
clients_desired_format
Instance methods inherited from module Lucky::Redirectable
redirect(to route : Lucky::RouteHelper, status = 302) : Lucky::TextResponseredirect(to action : Lucky::Action.class, status = 302) : Lucky::TextResponse
redirect(to path : String, status : HTTP::Status) : Lucky::TextResponse
redirect(to path : String, status : Int32 = 302) : Lucky::TextResponse redirect
Instance methods inherited from module Lucky::ActionPipes
continue : Lucky::ActionPipes::Continue
continue
Instance methods inherited from module Lucky::ParamHelpers
params : Lucky::Params
params
Instance methods inherited from module Lucky::Renderable
file(path : String, content_type : String | Nil = nil, disposition : String = "attachment", filename : String | Nil = nil, status : Int32 | Nil = nil) : Lucky::FileResponsefile(path : String, content_type : String | Nil = nil, disposition : String = "attachment", filename : String | Nil = nil, status : HTTP::Status = HTTP::Status::OK) : Lucky::FileResponse file, head(status : Int32) : Lucky::TextResponse
head(status : HTTP::Status) : Lucky::TextResponse head, json(body, status : Int32 | Nil = nil) : Lucky::TextResponse
json(body, status : HTTP::Status) : Lucky::TextResponse json, plain_text(body : String, status : Int32 | Nil = nil) : Lucky::TextResponse
plain_text(body : String, status : HTTP::Status) : Lucky::TextResponse plain_text, send_text_response(body : String, content_type : String, status : Int32 | Nil = nil) : Lucky::TextResponse send_text_response, xml(body : String, status : Int32 | Nil = nil) : Lucky::TextResponse
xml(body, status : HTTP::Status) : Lucky::TextResponse xml