Skip to content

Documentation


Documentation / @blazetrails/actionpack / ActionDispatch

Variable: ActionDispatch ​

const ActionDispatch: Autoload & CallableMethods<Autoload> & { ActionableExceptions: typeof ActionableExceptions; AssertionResponse: typeof AssertionResponse; Assertions: { ResponseAssertions: { assertRedirectedTo: (this, urlOptions, options, message?) => true; assertResponse: (this, type, message?) => void; codeWithName: { }; exceptionIfPresent: { }; generateResponseMessage: { }; locationIfRedirected: { }; normalizeArgumentToRedirection: { }; parameterize: { }; responseBodyIfShort: { }; }; RoutingAssertions: Module<Record<never, never>>; }; Constants: Constants; deprecator: () => Deprecator; Http: { Cache: __module; FilterParameters: __module; MimeNegotiation: typeof MimeNegotiation; name: string; Parameters: typeof Parameters; UploadedFile: typeof UploadedFile; }; Integration: { name: string; Session: typeof Session; }; IntegrationTest: typeof IntegrationTest; Journey: Journey; MissingController: typeof MissingController; RemoteIp: typeof RemoteIp; Request: typeof Request; RequestEncoder?: typeof RequestEncoder; Routing: Autoload & CallableMethods<Autoload> & { HtmlTableFormatter: typeof HtmlTableFormatter; PolymorphicRoutes: __module; RouteSet: typeof RouteSet; RoutesProxy: typeof RoutesProxy; UrlFor: { _routesContext: { }; _withRoutes: { }; fullUrlFor: { }; optimizeRoutesGeneration: { }; routeFor: (this, name, ...args) => string; urlFor: (this, options?) => string; urlOptions: (this) => Record<string, unknown>; }; }; Session: Autoload & CallableMethods<Autoload> & { AbstractSecureStore: typeof AbstractSecureStore; AbstractStore: typeof AbstractStore; CacheStore: typeof CacheStore; Compatibility: { DEFAULT_SAME_SITE: (request) => unknown; generateSid: string; }; CookieStore: typeof CookieStore; MemCacheStore: typeof MemCacheStore; resolveStore: unknown; }; testApp: unknown; TestHelpers: { name: string; PageDumpHelper: __module; }; TestProcess: { assigns: (this, _key?) => never; cookies: (this) => CookieJar; fileFixtureUpload: (this, path, mimeType?, binary) => UploadedFile; fixtureFileUpload: (this, path, mimeType?, binary) => UploadedFile; flash: (this) => Promise<FlashHash>; redirectToUrl: (this) => string | undefined; session: (this) => Session; }; TestRequest: typeof TestRequest; TestResponse: typeof TestResponse; }

Defined in: packages/actionpack/lib/namespaces.ts:108

Type Declaration ​

ActionableExceptions ​

ActionableExceptions: typeof ActionableExceptions

AssertionResponse ​

AssertionResponse: typeof AssertionResponse

Assertions ​

Assertions: { ResponseAssertions: { assertRedirectedTo: (this, urlOptions, options, message?) => true; assertResponse: (this, type, message?) => void; codeWithName: { }; exceptionIfPresent: { }; generateResponseMessage: { }; locationIfRedirected: { }; normalizeArgumentToRedirection: { }; parameterize: { }; responseBodyIfShort: { }; }; RoutingAssertions: Module<Record<never, never>>; }

Assertions.ResponseAssertions ​

ResponseAssertions: { assertRedirectedTo: (this, urlOptions, options, message?) => true; assertResponse: (this, type, message?) => void; codeWithName: { }; exceptionIfPresent: { }; generateResponseMessage: { }; locationIfRedirected: { }; normalizeArgumentToRedirection: { }; parameterize: { }; responseBodyIfShort: { }; }

Assertions.ResponseAssertions.assertRedirectedTo ​

assertRedirectedTo: (this, urlOptions, options, message?) => true

Parameters ​
ParameterType
thisAssertionResponseHost
urlOptionsunknown
optionsstring | { status?: string | number; }
message?string
Returns ​

true

Assertions.ResponseAssertions.assertResponse ​

assertResponse: (this, type, message?) => void

Parameters ​
ParameterType
thisAssertionResponseHost
typestring | number
message?string | (() => string)
Returns ​

void

Assertions.ResponseAssertions.codeWithName ​

codeWithName: { }

Assertions.ResponseAssertions.exceptionIfPresent ​

exceptionIfPresent: { }

Assertions.ResponseAssertions.generateResponseMessage ​

generateResponseMessage: { }

Assertions.ResponseAssertions.locationIfRedirected ​

locationIfRedirected: { }

Assertions.ResponseAssertions.normalizeArgumentToRedirection ​

normalizeArgumentToRedirection: { }

Assertions.ResponseAssertions.parameterize ​

parameterize: { }

Assertions.ResponseAssertions.responseBodyIfShort ​

responseBodyIfShort: { }

Assertions.RoutingAssertions ​

RoutingAssertions: Module<Record<never, never>>

Constants ​

Constants: Constants

deprecator ​

deprecator: () => Deprecator

Returns ​

Deprecator

Http ​

Http: { Cache: __module; FilterParameters: __module; MimeNegotiation: typeof MimeNegotiation; name: string; Parameters: typeof Parameters; UploadedFile: typeof UploadedFile; }

Http.Cache ​

Cache: __module

Http.FilterParameters ​

FilterParameters: __module

Http.MimeNegotiation ​

MimeNegotiation: typeof MimeNegotiation

Http.name ​

name: string

Http.Parameters ​

Parameters: typeof Parameters

Http.UploadedFile ​

UploadedFile: typeof UploadedFile

Integration ​

Integration: { name: string; Session: typeof Session; }

Integration.name ​

name: string

Integration.Session ​

Session: typeof Session

IntegrationTest ​

IntegrationTest: typeof IntegrationTest

Journey ​

Journey: Journey

MissingController ​

MissingController: typeof MissingController

RemoteIp ​

RemoteIp: typeof RemoteIp

Request ​

Request: typeof Request

RequestEncoder? ​

optional RequestEncoder?: typeof RequestEncoder

Routing ​

Routing: Autoload & CallableMethods<Autoload> & { HtmlTableFormatter: typeof HtmlTableFormatter; PolymorphicRoutes: __module; RouteSet: typeof RouteSet; RoutesProxy: typeof RoutesProxy; UrlFor: { _routesContext: { }; _withRoutes: { }; fullUrlFor: { }; optimizeRoutesGeneration: { }; routeFor: (this, name, ...args) => string; urlFor: (this, options?) => string; urlOptions: (this) => Record<string, unknown>; }; }

Type Declaration ​

HtmlTableFormatter ​

HtmlTableFormatter: typeof HtmlTableFormatter

PolymorphicRoutes ​

PolymorphicRoutes: __module

RouteSet ​

RouteSet: typeof RouteSet

RoutesProxy ​

RoutesProxy: typeof RoutesProxy

UrlFor ​

UrlFor: { _routesContext: { }; _withRoutes: { }; fullUrlFor: { }; optimizeRoutesGeneration: { }; routeFor: (this, name, ...args) => string; urlFor: (this, options?) => string; urlOptions: (this) => Record<string, unknown>; }

UrlFor._routesContext ​

_routesContext: { }

UrlFor._withRoutes ​

_withRoutes: { }

UrlFor.fullUrlFor ​

fullUrlFor: { }

UrlFor.optimizeRoutesGeneration ​

optimizeRoutesGeneration: { }

UrlFor.routeFor ​

routeFor: (this, name, ...args) => string

Parameters ​
ParameterType
thisUrlForHost
namestring
...argsunknown[]
Returns ​

string

UrlFor.urlFor ​

urlFor: (this, options?) => string

Parameters ​
ParameterType
thisUrlForHost
options?UrlForOptions
Returns ​

string

UrlFor.urlOptions ​

urlOptions: (this) => Record<string, unknown>

Parameters ​
ParameterType
thisUrlForHost
Returns ​

Record<string, unknown>

Session ​

Session: Autoload & CallableMethods<Autoload> & { AbstractSecureStore: typeof AbstractSecureStore; AbstractStore: typeof AbstractStore; CacheStore: typeof CacheStore; Compatibility: { DEFAULT_SAME_SITE: (request) => unknown; generateSid: string; }; CookieStore: typeof CookieStore; MemCacheStore: typeof MemCacheStore; resolveStore: unknown; }

Type Declaration ​

AbstractSecureStore ​

AbstractSecureStore: typeof AbstractSecureStore

AbstractStore ​

AbstractStore: typeof AbstractStore

CacheStore ​

CacheStore: typeof CacheStore

Compatibility ​

Compatibility: { DEFAULT_SAME_SITE: (request) => unknown; generateSid: string; }

Compatibility.DEFAULT_SAME_SITE ​

DEFAULT_SAME_SITE: (request) => unknown

Parameters ​
ParameterType
requestRequest
Returns ​

unknown

Compatibility.generateSid() ​

generateSid(this): string

Parameters ​
ParameterType
thisunknown
Returns ​

string

CookieStore ​

CookieStore: typeof CookieStore

MemCacheStore ​

MemCacheStore: typeof MemCacheStore

resolveStore() ​

resolveStore(sessionStore): unknown

Parameters ​
ParameterType
sessionStorestring
Returns ​

unknown

testApp ​

testApp: unknown

TestHelpers ​

TestHelpers: { name: string; PageDumpHelper: __module; }

TestHelpers.name ​

name: string

TestHelpers.PageDumpHelper ​

PageDumpHelper: __module

TestProcess ​

TestProcess: { assigns: (this, _key?) => never; cookies: (this) => CookieJar; fileFixtureUpload: (this, path, mimeType?, binary) => UploadedFile; fixtureFileUpload: (this, path, mimeType?, binary) => UploadedFile; flash: (this) => Promise<FlashHash>; redirectToUrl: (this) => string | undefined; session: (this) => Session; }

TestProcess.assigns ​

assigns: (this, _key?) => never

Parameters ​
ParameterType
thisTestProcessHost
_key?string | symbol
Returns ​

never

TestProcess.cookies ​

cookies: (this) => CookieJar

Parameters ​
ParameterType
thisTestProcessHost
Returns ​

CookieJar

TestProcess.fileFixtureUpload ​

fileFixtureUpload: (this, path, mimeType?, binary) => UploadedFile

Parameters ​
ParameterTypeDefault value
thisTestProcessHostundefined
pathstring | Pathnameundefined
mimeType?string | nullundefined
binary?booleanfalse
Returns ​

UploadedFile

TestProcess.fixtureFileUpload ​

fixtureFileUpload: (this, path, mimeType?, binary) => UploadedFile

Parameters ​
ParameterTypeDefault value
thisTestProcessHostundefined
pathstring | Pathnameundefined
mimeType?string | nullundefined
binary?booleanfalse
Returns ​

UploadedFile

TestProcess.flash ​

flash: (this) => Promise<FlashHash>

Parameters ​
ParameterType
thisTestProcessHost
Returns ​

Promise<FlashHash>

TestProcess.redirectToUrl ​

redirectToUrl: (this) => string | undefined

Parameters ​
ParameterType
thisTestProcessHost
Returns ​

string | undefined

TestProcess.session ​

session: (this) => Session

Parameters ​
ParameterType
thisTestProcessHost
Returns ​

Session

TestRequest ​

TestRequest: typeof TestRequest

TestResponse ​

TestResponse: typeof TestResponse