abstract class BaseAction

Overview

All Actions should be inherited from BaseAction.

class HelloWorld < BaseAction
  call do
    render_plain "Hello World!"
  end
end

Defines Another BaseAction.

abstract class Api::V1::BaseAction < BaseAction
end

Direct Known Subclasses

Defined in:

tops/base_action.cr

Instance methods inherited from class Runcobo::Action

call call, context : HTTP::Server::Context context, context=(context : HTTP::Server::Context) context=, form_params form_params, json_params json_params, parse_params parse_params, query_params query_params, raw_body : String? raw_body, raw_body=(raw_body : String?) raw_body=, request : HTTP::Request request, request=(request : HTTP::Request) request=, url_params url_params

Constructor methods inherited from class Runcobo::Action

new(context : HTTP::Server::Context) new

Instance methods inherited from module Runcobo::Pipe

byebye byebye, continue continue

Instance methods inherited from module Runcobo::Render

render_body(body : String, *, status_code : Int32 = 200, content_type : String? = nil) : HTTP::Server::Context render_body, render_file(path : String, *, status_code : Int32 = 200, content_type : String?, filename : String? = nil, disposition : String = "attachment") : HTTP::Server::Context render_file, render_plain(text : String, *, status_code : Int32 = 200) : HTTP::Server::Context render_plain

Instance methods inherited from module Runcobo::Redirector

redirect(url : String, *, status_code : Int32 = 302) redirect