Skip to content

Documentation


Documentation / @blazetrails/actionpack / ActionController / API

Class: API ​

Defined in: packages/actionpack/lib/action-controller/api.ts:60

Extends ​

Constructors ​

Constructor ​

new API(): API

Defined in: packages/actionpack/lib/action-controller/api.ts:157

Returns ​

API

Invented Arm ​

if — PERMANENT

Inlined From ​

ActiveRecord::Railties::ControllerRuntime#initialize rails/v8.0.5.2/activerecord/lib/active_record/railties/controller_runtime.rb:26-29

Inlined From ​

ActionController::Instrumentation#initialize rails/v8.0.5.2/actionpack/lib/action_controller/metal/instrumentation.rb:23-26

Inlined From ​

ActionController::UrlFor#initialize rails/v8.0.5.2/actionpack/lib/action_controller/metal/url_for.rb:32-35

Inlined From ​

ActionDispatch::Routing::UrlFor#initialize rails/v8.0.5.2/actionpack/lib/action_dispatch/routing/url_for.rb:111-114

Inherited from ​

Metal.constructor

Properties ​

_actionName ​

_actionName: string = ""

Defined in: packages/actionpack/lib/abstract-controller/base.ts:66

Inherited from ​

Metal._actionName


_allowOtherHost ​

_allowOtherHost: (...args) => boolean

Defined in: packages/actionpack/lib/action-controller/metal/redirecting.ts:233

Parameters ​

ParameterType
...args[]

Returns ​

boolean

Inherited from ​

Included._allowOtherHost


_computeRedirectToLocation ​

_computeRedirectToLocation: (...args) => string

Defined in: packages/actionpack/lib/action-controller/metal/redirecting.ts:229

Parameters ​

ParameterType
...args[{ host: string; protocol: string; referer?: string | null; hostWithPort: string; }, unknown]

Returns ​

string

Inherited from ​

Included._computeRedirectToLocation


_enforceOpenRedirectProtection ​

_enforceOpenRedirectProtection: (...args) => string

Defined in: packages/actionpack/lib/action-controller/metal/redirecting.ts:235

Parameters ​

ParameterType
...args[string, { allowOtherHost: boolean; }]

Returns ​

string

Inherited from ​

Included._enforceOpenRedirectProtection


_ensureUrlIsHttpHeaderSafe ​

_ensureUrlIsHttpHeaderSafe: { }

Defined in: packages/actionpack/lib/action-controller/metal/redirecting.ts:237

Inherited from ​

Included._ensureUrlIsHttpHeaderSafe


_extractRedirectToStatus ​

_extractRedirectToStatus: { }

Defined in: packages/actionpack/lib/action-controller/metal/redirecting.ts:234

Inherited from ​

Included._extractRedirectToStatus


_formats ​

protected _formats: unknown = null

Defined in: packages/actionpack/lib/abstract-controller/base.ts:84

Inherited from ​

Metal._formats


_isWrapperOptions ​

_isWrapperOptions: boolean

Defined in: packages/actionpack/lib/action-controller/api.ts:138


_params ​

_params: Record<string, unknown> | Parameters | null = null

Defined in: packages/actionpack/lib/action-controller/metal.ts:129

Inherited from ​

Metal._params


_request ​

_request: Request

Defined in: packages/actionpack/lib/action-controller/metal.ts:127

Inherited from ​

Metal._request


_response ​

_response: Response

Defined in: packages/actionpack/lib/action-controller/metal.ts:128

Inherited from ​

Metal._response


_responseBody ​

protected _responseBody: unknown = null

Defined in: packages/actionpack/lib/abstract-controller/base.ts:75

Inherited from ​

Metal._responseBody


_urlHostAllowed ​

_urlHostAllowed: (...args) => boolean

Defined in: packages/actionpack/lib/action-controller/metal/redirecting.ts:236

Parameters ​

ParameterType
...args[unknown]

Returns ​

boolean

Inherited from ​

Included._urlHostAllowed


_wrapperOptions ​

_wrapperOptions: ParamsWrapperOptions

Defined in: packages/actionpack/lib/action-controller/api.ts:136


clearInstanceVariablesBetweenRequests ​

clearInstanceVariablesBetweenRequests: (...args) => void

Defined in: packages/actionpack/lib/action-controller/metal/testing.ts:27

Parameters ​

ParameterType
...args[]

Returns ​

void

Inherited from ​

Metal.clearInstanceVariablesBetweenRequests


combineEtags ​

combineEtags: (...args) => Promise

Defined in: packages/actionpack/lib/action-controller/metal/conditional-get.ts:151

Parameters ​

ParameterType
...args[unknown, Record<string, unknown>]

Returns ​

Promise

Inherited from ​

Included.combineEtags


expiresIn ​

expiresIn: (...args) => void

Defined in: packages/actionpack/lib/action-controller/metal/conditional-get.ts:147

Parameters ​

ParameterType
...args[number | Duration, Record<string, unknown>]

Returns ​

void

Inherited from ​

Included.expiresIn


expiresNow ​

expiresNow: (...args) => void

Defined in: packages/actionpack/lib/action-controller/metal/conditional-get.ts:148

Parameters ​

ParameterType
...args[]

Returns ​

void

Inherited from ​

Included.expiresNow


freshWhen ​

freshWhen: (...args) => Promise

Defined in: packages/actionpack/lib/action-controller/metal/conditional-get.ts:145

Parameters ​

ParameterType
...args[unknown, FreshWhenOptions?]

Returns ​

Promise

Inherited from ​

Included.freshWhen


head: (...args) => Promise

Defined in: packages/actionpack/lib/action-controller/metal/head.ts:78

Parameters ​

ParameterType
...args[string | number | false | null, Record<string, unknown> | null]

Returns ​

Promise

Inherited from ​

Included.head


httpCacheForever ​

httpCacheForever: (...args) => Promise

Defined in: packages/actionpack/lib/action-controller/metal/conditional-get.ts:149

Parameters ​

ParameterType
...args[{ public?: boolean; }?, () => unknown]

Returns ​

Promise

Inherited from ​

Included.httpCacheForever


includeContent ​

includeContent: { }

Defined in: packages/actionpack/lib/action-controller/metal/head.ts:78

Inherited from ​

Included.includeContent


isMiddlewareStack ​

isMiddlewareStack: boolean

Defined in: packages/actionpack/lib/action-controller/metal.ts:111

Inherited from ​

Metal.isMiddlewareStack


isStale ​

isStale: (...args) => Promise

Defined in: packages/actionpack/lib/action-controller/metal/conditional-get.ts:146

Parameters ​

ParameterType
...args[unknown, FreshWhenOptions]

Returns ​

Promise

Inherited from ​

Included.isStale


middlewareStack ​

middlewareStack: MiddlewareStack

Defined in: packages/actionpack/lib/action-controller/metal.ts:110

Inherited from ​

Metal.middlewareStack


noStore ​

noStore: (...args) => void

Defined in: packages/actionpack/lib/action-controller/metal/conditional-get.ts:150

Parameters ​

ParameterType
...args[]

Returns ​

void

Inherited from ​

Included.noStore


recycleBang ​

recycleBang: (...args) => void

Defined in: packages/actionpack/lib/action-controller/metal/testing.ts:27

Parameters ​

ParameterType
...args[]

Returns ​

void

Inherited from ​

Metal.recycleBang


redirectBack ​

redirectBack: (...args) => unknown

Defined in: packages/actionpack/lib/action-controller/metal/redirecting.ts:226

Parameters ​

ParameterType
...args[{ allowOtherHost?: boolean; fallbackLocation: string; } & Record<string, unknown>]

Returns ​

unknown

Inherited from ​

Included.redirectBack


redirectBackOrTo ​

redirectBackOrTo: (...args) => unknown

Defined in: packages/actionpack/lib/action-controller/metal/redirecting.ts:227

Parameters ​

ParameterType
...args[string, { allowOtherHost?: boolean; } & Record<string, unknown>?]

Returns ​

unknown

Inherited from ​

Included.redirectBackOrTo


redirectTo ​

redirectTo: (...args) => Promise

Defined in: packages/actionpack/lib/action-controller/metal/redirecting.ts:225

Parameters ​

ParameterType
...args[RedirectToOptions, RedirectToResponseOptions]

Returns ​

Promise

Inherited from ​

Included.redirectTo


render ​

render: (...args) => unknown

Defined in: packages/actionpack/lib/action-controller/api.ts:67

Parameters ​

ParameterType
...argsunknown[]

Returns ​

unknown


sendData ​

sendData: (...args) => unknown

Defined in: packages/actionpack/lib/action-controller/metal/data-streaming.ts:125

Parameters ​

ParameterType
...args[string | Uint8Array<ArrayBufferLike>, SendDataOptions]

Returns ​

unknown

Inherited from ​

Included.sendData


sendFile ​

sendFile: (...args) => void

Defined in: packages/actionpack/lib/action-controller/metal/data-streaming.ts:124

Parameters ​

ParameterType
...args[string, SendFileOptions]

Returns ​

void

Inherited from ​

Included.sendFile


sendFileHeadersBang ​

sendFileHeadersBang: (...args) => void

Defined in: packages/actionpack/lib/action-controller/metal/data-streaming.ts:126

Parameters ​

ParameterType
...args[SendFileHeadersOptions]

Returns ​

void

Inherited from ​

Included.sendFileHeadersBang


urlFrom ​

urlFrom: (...args) => string | null

Defined in: packages/actionpack/lib/action-controller/metal/redirecting.ts:232

Parameters ​

ParameterType
...args[string | null]

Returns ​

string | null

Inherited from ​

Included.urlFrom


urlOptions ​

urlOptions: (...args) => R

Defined in: packages/actionpack/lib/action-controller/metal/url-for.ts:48

Parameters ​

ParameterType
...args[]

Returns ​

R

Inherited from ​

Included.urlOptions


viewRuntime ​

viewRuntime: number | null

Defined in: packages/actionpack/lib/action-controller/api.ts:148


_abstract ​

protected static _abstract: boolean = false

Defined in: packages/actionpack/lib/abstract-controller/base.ts:126

Inherited from ​

Metal._abstract


_controllerName? ​

protected static optional _controllerName?: string | null

Defined in: packages/actionpack/lib/action-controller/metal.ts:162

Inherited from ​

Metal._controllerName


_isWrapperOptions ​

static _isWrapperOptions: boolean

Defined in: packages/actionpack/lib/action-controller/api.ts:137


_wrapperOptions ​

static _wrapperOptions: ParamsWrapperOptions

Defined in: packages/actionpack/lib/action-controller/api.ts:135


afterAction ​

static afterAction: <H>(this, ...names) => void

Defined in: packages/actionpack/lib/action-controller/api.ts:122

Type Parameters ​

Type Parameter
H extends Pick<CallableMethods<{ __updateCallbacks: void; defineCallbacks: void; resetCallbacks: void; setCallback: void; skipCallback: void; }>, "setCallback" | "skipCallback">

Parameters ​

ParameterType
thisH
...namesActionCallbackArgs<ActionCallback<ControllerOf<H>>>

Returns ​

void


appendAfterAction ​

static appendAfterAction: <H>(this, ...names) => void

Defined in: packages/actionpack/lib/action-controller/api.ts:125

Type Parameters ​

Type Parameter
H extends Pick<CallableMethods<{ __updateCallbacks: void; defineCallbacks: void; resetCallbacks: void; setCallback: void; skipCallback: void; }>, "setCallback" | "skipCallback">

Parameters ​

ParameterType
thisH
...namesActionCallbackArgs<ActionCallback<ControllerOf<H>>>

Returns ​

void


appendAroundAction ​

static appendAroundAction: <H>(this, ...names) => void

Defined in: packages/actionpack/lib/action-controller/api.ts:129

Type Parameters ​

Type Parameter
H extends Pick<CallableMethods<{ __updateCallbacks: void; defineCallbacks: void; resetCallbacks: void; setCallback: void; skipCallback: void; }>, "setCallback" | "skipCallback">

Parameters ​

ParameterType
thisH
...namesActionCallbackArgs<AroundCallback<ControllerOf<H>>>

Returns ​

void


appendBeforeAction ​

static appendBeforeAction: <H>(this, ...names) => void

Defined in: packages/actionpack/lib/action-controller/api.ts:121

Type Parameters ​

Type Parameter
H extends Pick<CallableMethods<{ __updateCallbacks: void; defineCallbacks: void; resetCallbacks: void; setCallback: void; skipCallback: void; }>, "setCallback" | "skipCallback">

Parameters ​

ParameterType
thisH
...namesActionCallbackArgs<ActionCallback<ControllerOf<H>>>

Returns ​

void


aroundAction ​

static aroundAction: <H>(this, ...names) => void

Defined in: packages/actionpack/lib/action-controller/api.ts:126

Type Parameters ​

Type Parameter
H extends Pick<CallableMethods<{ __updateCallbacks: void; defineCallbacks: void; resetCallbacks: void; setCallback: void; skipCallback: void; }>, "setCallback" | "skipCallback">

Parameters ​

ParameterType
thisH
...namesActionCallbackArgs<AroundCallback<ControllerOf<H>>>

Returns ​

void


beforeAction ​

static beforeAction: <H>(this, ...names) => void

Defined in: packages/actionpack/lib/action-controller/api.ts:118

Type Parameters ​

Type Parameter
H extends Pick<CallableMethods<{ __updateCallbacks: void; defineCallbacks: void; resetCallbacks: void; setCallback: void; skipCallback: void; }>, "setCallback" | "skipCallback">

Parameters ​

ParameterType
thisH
...namesActionCallbackArgs<ActionCallback<ControllerOf<H>>>

Returns ​

void


defineCallbacks ​

static defineCallbacks: (...args) => void

Defined in: packages/actionpack/lib/action-controller/api.ts:114

Parameters ​

ParameterType
...args(string | DefineCallbacksOptions<any>)[]

Returns ​

void


isMiddlewareStack ​

static isMiddlewareStack: boolean

Defined in: packages/actionpack/lib/action-controller/metal.ts:109

Inherited from ​

Metal.isMiddlewareStack


logAt ​

static logAt: (...args) => void

Defined in: packages/actionpack/lib/action-controller/api.ts:133

Parameters ​

ParameterType
...args[number | LogLevel, CallbackOptions]

Returns ​

void


middlewareStack ​

static middlewareStack: MiddlewareStack

Defined in: packages/actionpack/lib/action-controller/metal.ts:108

Inherited from ​

Metal.middlewareStack


MODULES ​

static MODULES: (object | AnyClass | Module<Record<never, never>>)[]

Defined in: packages/actionpack/lib/action-controller/api.ts:86


prependAfterAction ​

static prependAfterAction: <H>(this, ...names) => void

Defined in: packages/actionpack/lib/action-controller/api.ts:123

Type Parameters ​

Type Parameter
H extends Pick<CallableMethods<{ __updateCallbacks: void; defineCallbacks: void; resetCallbacks: void; setCallback: void; skipCallback: void; }>, "setCallback" | "skipCallback">

Parameters ​

ParameterType
thisH
...namesActionCallbackArgs<ActionCallback<ControllerOf<H>>>

Returns ​

void


prependAroundAction ​

static prependAroundAction: <H>(this, ...names) => void

Defined in: packages/actionpack/lib/action-controller/api.ts:127

Type Parameters ​

Type Parameter
H extends Pick<CallableMethods<{ __updateCallbacks: void; defineCallbacks: void; resetCallbacks: void; setCallback: void; skipCallback: void; }>, "setCallback" | "skipCallback">

Parameters ​

ParameterType
thisH
...namesActionCallbackArgs<AroundCallback<ControllerOf<H>>>

Returns ​

void


prependBeforeAction ​

static prependBeforeAction: <H>(this, ...names) => void

Defined in: packages/actionpack/lib/action-controller/api.ts:119

Type Parameters ​

Type Parameter
H extends Pick<CallableMethods<{ __updateCallbacks: void; defineCallbacks: void; resetCallbacks: void; setCallback: void; skipCallback: void; }>, "setCallback" | "skipCallback">

Parameters ​

ParameterType
thisH
...namesActionCallbackArgs<ActionCallback<ControllerOf<H>>>

Returns ​

void


raiseOnMissingCallbackActions ​

static raiseOnMissingCallbackActions: boolean

Defined in: packages/actionpack/lib/action-controller/api.ts:117


raiseOnOpenRedirects ​

static raiseOnOpenRedirects: boolean

Defined in: packages/actionpack/lib/action-controller/api.ts:112


rateLimit ​

static rateLimit: (...args) => void

Defined in: packages/actionpack/lib/action-controller/api.ts:131

Parameters ​

ParameterType
...args[{ by?: Block; name?: string | null; store?: CacheStore; to: number; with?: Block; within: number | Duration; } & CallbackOptions]

Returns ​

void


render ​

static render: (...args) => Promise<unknown>

Defined in: packages/actionpack/lib/action-controller/api.ts:78

Parameters ​

ParameterType
...argsunknown[]

Returns ​

Promise<unknown>


rescueFrom ​

static rescueFrom: (...args) => void

Defined in: packages/actionpack/lib/action-controller/api.ts:142

Parameters ​

ParameterType
...args(string | ExceptionClass | { with?: ErrorHandler | undefined; } | ((this, error) => unknown))[]

Returns ​

void


setCallback ​

static setCallback: (...args) => void

Defined in: packages/actionpack/lib/action-controller/api.ts:115

Parameters ​

ParameterType
...args[string, ...filterList: FilterListEntry<any>[]]

Returns ​

void


skipAfterAction ​

static skipAfterAction: <H>(this, ...names) => void

Defined in: packages/actionpack/lib/action-controller/api.ts:124

Type Parameters ​

Type Parameter
H extends Pick<CallableMethods<{ __updateCallbacks: void; defineCallbacks: void; resetCallbacks: void; setCallback: void; skipCallback: void; }>, "setCallback" | "skipCallback">

Parameters ​

ParameterType
thisH
...namesActionCallbackArgs<ActionCallback<ControllerOf<H>>>

Returns ​

void


skipAroundAction ​

static skipAroundAction: <H>(this, ...names) => void

Defined in: packages/actionpack/lib/action-controller/api.ts:128

Type Parameters ​

Type Parameter
H extends Pick<CallableMethods<{ __updateCallbacks: void; defineCallbacks: void; resetCallbacks: void; setCallback: void; skipCallback: void; }>, "setCallback" | "skipCallback">

Parameters ​

ParameterType
thisH
...namesActionCallbackArgs<AroundCallback<ControllerOf<H>>>

Returns ​

void


skipBeforeAction ​

static skipBeforeAction: <H>(this, ...names) => void

Defined in: packages/actionpack/lib/action-controller/api.ts:120

Type Parameters ​

Type Parameter
H extends Pick<CallableMethods<{ __updateCallbacks: void; defineCallbacks: void; resetCallbacks: void; setCallback: void; skipCallback: void; }>, "setCallback" | "skipCallback">

Parameters ​

ParameterType
thisH
...namesActionCallbackArgs<ActionCallback<ControllerOf<H>>>

Returns ​

void


skipCallback ​

static skipCallback: (...args) => void

Defined in: packages/actionpack/lib/action-controller/api.ts:116

Parameters ​

ParameterType
...args[string, ...filterList: FilterListEntry<any>[]]

Returns ​

void


wrapParameters ​

static wrapParameters: (...args) => void

Defined in: packages/actionpack/lib/action-controller/api.ts:141

Parameters ​

ParameterType
...args[unknown, Record<string, unknown>]

Returns ​

void

Accessors ​

actionName ​

Get Signature ​

get actionName(): string

Defined in: packages/actionpack/lib/abstract-controller/base.ts:68

Returns ​

string

Set Signature ​

set actionName(value): void

Defined in: packages/actionpack/lib/abstract-controller/base.ts:71

Parameters ​
ParameterType
valuestring
Returns ​

void

Inherited from ​

Metal.actionName


contentType ​

Get Signature ​

get contentType(): string | null

Defined in: packages/actionpack/lib/action-controller/metal.ts:293

Returns ​

string | null

Set Signature ​

set contentType(value): void

Defined in: packages/actionpack/lib/action-controller/metal.ts:289

Parameters ​
ParameterType
valuestring | MimeType | undefined
Returns ​

void

Inherited from ​

Metal.contentType


formats ​

Get Signature ​

get formats(): unknown

Defined in: packages/actionpack/lib/abstract-controller/base.ts:86

Returns ​

unknown

Set Signature ​

set formats(value): void

Defined in: packages/actionpack/lib/abstract-controller/base.ts:89

Parameters ​
ParameterType
valueunknown
Returns ​

void

Inherited from ​

Metal.formats


headers ​

Get Signature ​

get headers(): Headers

Defined in: packages/actionpack/lib/action-controller/metal.ts:277

Returns ​

Headers

Inherited from ​

Metal.headers


location ​

Get Signature ​

get location(): string | undefined

Defined in: packages/actionpack/lib/action-controller/metal.ts:285

Returns ​

string | undefined

Set Signature ​

set location(value): void

Defined in: packages/actionpack/lib/action-controller/metal.ts:281

Parameters ​
ParameterType
valuestring
Returns ​

void

Inherited from ​

Metal.location


mediaType ​

Get Signature ​

get mediaType(): string | null

Defined in: packages/actionpack/lib/action-controller/metal.ts:297

Returns ​

string | null

Inherited from ​

Metal.mediaType


params ​

Get Signature ​

get params(): Parameters

Defined in: packages/actionpack/lib/action-controller/api.ts:68

Returns ​

Parameters

Set Signature ​

set params(value): void

Defined in: packages/actionpack/lib/action-controller/api.ts:69

Parameters ​
ParameterType
valueRecord<string, unknown> | Parameters
Returns ​

void

Inherited from ​

Metal.params


performed ​

Get Signature ​

get performed(): boolean

Defined in: packages/actionpack/lib/action-controller/metal.ts:315

Returns ​

boolean

Inherited from ​

Metal.performed


request ​

Get Signature ​

get request(): Request

Defined in: packages/actionpack/lib/action-controller/metal.ts:142

Returns ​

Request

Set Signature ​

set request(value): void

Defined in: packages/actionpack/lib/action-controller/metal.ts:145

Parameters ​
ParameterType
valueRequest
Returns ​

void

Inherited from ​

Metal.request


response ​

Get Signature ​

get response(): Response

Defined in: packages/actionpack/lib/action-controller/metal.ts:149

Returns ​

Response

Set Signature ​

set response(response): void

Defined in: packages/actionpack/lib/action-controller/metal.ts:152

Parameters ​
ParameterType
responseRackResponse | Response | Response
Returns ​

void

Inherited from ​

Metal.response


responseBody ​

Get Signature ​

get responseBody(): unknown

Defined in: packages/actionpack/lib/action-controller/metal.ts:311

Returns ​

unknown

Inherited from ​

Metal.responseBody


responseCode ​

Get Signature ​

get responseCode(): number

Defined in: packages/actionpack/lib/action-controller/metal.ts:273

Returns ​

number

Inherited from ​

Metal.responseCode


session ​

Get Signature ​

get session(): Session

Defined in: packages/actionpack/lib/action-controller/metal.ts:158

Returns ​

Session

Inherited from ​

Metal.session


status ​

Get Signature ​

get status(): number

Defined in: packages/actionpack/lib/action-controller/metal.ts:269

Returns ​

number

Set Signature ​

set status(value): void

Defined in: packages/actionpack/lib/action-controller/metal.ts:265

Parameters ​
ParameterType
valuestring | number
Returns ​

void

Inherited from ​

Metal.status

Methods ​

actionMethods() ​

actionMethods(): ReadonlySet<string>

Defined in: packages/actionpack/lib/abstract-controller/base.ts:237

Returns ​

ReadonlySet<string>

Inherited from ​

Metal.actionMethods


controllerName() ​

controllerName(): string | null

Defined in: packages/actionpack/lib/action-controller/metal.ts:229

Returns ​

string | null

Inherited from ​

Metal.controllerName


controllerPath() ​

controllerPath(): string

Defined in: packages/actionpack/lib/abstract-controller/base.ts:233

Returns ​

string

Inherited from ​

Metal.controllerPath


dispatch() ​

dispatch(name, request, response): Promise<RackResponse>

Defined in: packages/actionpack/lib/action-controller/metal.ts:237

Parameters ​

ParameterType
namestring
requestRequest
responseResponse

Returns ​

Promise<RackResponse>

Inherited from ​

Metal.dispatch


inspect() ​

inspect(): string

Defined in: packages/actionpack/lib/abstract-controller/base.ts:245

Returns ​

string

Inherited from ​

Metal.inspect


isAvailableAction() ​

isAvailableAction(actionName): boolean

Defined in: packages/actionpack/lib/abstract-controller/base.ts:241

Parameters ​

ParameterType
actionNamestring

Returns ​

boolean

Inherited from ​

Metal.isAvailableAction


process() ​

process(action, ...args): Promise<unknown>

Defined in: packages/actionpack/lib/abstract-controller/base.ts:216

Parameters ​

ParameterType
actionstring
...argsunknown[]

Returns ​

Promise<unknown>

Inherited from ​

Metal.process


resetSession() ​

resetSession(): Promise<void>

Defined in: packages/actionpack/lib/action-controller/metal.ts:259

Returns ​

Promise<void>

Inherited from ​

Metal.resetSession


setRequestBang() ​

setRequestBang(request): void

Defined in: packages/actionpack/lib/action-controller/metal.ts:245

Parameters ​

ParameterType
requestRequest

Returns ​

void

Inherited from ​

Metal.setRequestBang


setResponseBang() ​

setResponseBang(response): void

Defined in: packages/actionpack/lib/action-controller/metal.ts:250

Parameters ​

ParameterType
responseRackResponse | Response | Response

Returns ​

void

Inherited from ​

Metal.setResponseBang


setResponseBody() ​

setResponseBody(body): Promise<void>

Defined in: packages/actionpack/lib/action-controller/metal.ts:301

Parameters ​

ParameterType
bodyunknown

Returns ​

Promise<void>

Inherited from ​

Metal.setResponseBody


toA() ​

toA(): RackResponse

Defined in: packages/actionpack/lib/action-controller/metal.ts:319

Returns ​

RackResponse

Inherited from ​

Metal.toA


urlFor() ​

urlFor(string): string

Defined in: packages/actionpack/lib/action-controller/metal.ts:233

Parameters ​

ParameterType
stringunknown

Returns ​

string

Inherited from ​

Metal.urlFor


action() ​

static action(this, name): RackAppObject | RackApp

Defined in: packages/actionpack/lib/action-controller/metal.ts:191

Parameters ​

ParameterType
thistypeof Metal
namestring

Returns ​

RackAppObject | RackApp

Inherited from ​

Metal.action


actionEncodingTemplate() ​

static actionEncodingTemplate(_action): false | EncodingTemplate | null

Defined in: packages/actionpack/lib/action-controller/metal.ts:179

Parameters ​

ParameterType
_actionunknown

Returns ​

false | EncodingTemplate | null

Inherited from ​

Metal.actionEncodingTemplate


actionMethods() ​

static actionMethods(): ReadonlySet<string>

Defined in: packages/actionpack/lib/abstract-controller/base.ts:194

Returns ​

ReadonlySet<string>

Inherited from ​

Metal.actionMethods


controllerName() ​

static controllerName(): string | null

Defined in: packages/actionpack/lib/action-controller/metal.ts:164

Returns ​

string | null

Inherited from ​

Metal.controllerName


controllerPath() ​

static controllerPath(): string

Defined in: packages/actionpack/lib/abstract-controller/base.ts:150

Returns ​

string

Inherited from ​

Metal.controllerPath


dispatch() ​

static dispatch(this, name, req, res): Promise<RackResponse>

Defined in: packages/actionpack/lib/action-controller/metal.ts:207

Parameters ​

ParameterType
thistypeof Metal
namestring
reqRequest
resResponse

Returns ​

Promise<RackResponse>

Inherited from ​

Metal.dispatch


makeResponseBang() ​

static makeResponseBang(request): Promise<Response>

Defined in: packages/actionpack/lib/action-controller/metal.ts:173

Parameters ​

ParameterType
requestRequest

Returns ​

Promise<Response>

Inherited from ​

Metal.makeResponseBang


middleware() ​

static middleware(): MiddlewareStack

Defined in: packages/actionpack/lib/action-controller/metal.ts:183

Returns ​

MiddlewareStack

Inherited from ​

Metal.middleware


supportsPath() ​

static supportsPath(): boolean

Defined in: packages/actionpack/lib/abstract-controller/base.ts:276

Returns ​

boolean

Inherited from ​

Metal.supportsPath


use() ​

static use(...args): void

Defined in: packages/actionpack/lib/action-controller/metal.ts:187

Parameters ​

ParameterType
...argsunknown[]

Returns ​

void

Inherited from ​

Metal.use


withoutModules() ​

static withoutModules(...modules): (object | AnyClass | Module<Record<never, never>>)[]

Defined in: packages/actionpack/lib/action-controller/api.ts:79

Parameters ​

ParameterType
...modules(string | object | AnyClass | Module<Record<never, never>>)[]

Returns ​

(object | AnyClass | Module<Record<never, never>>)[]