Documentation / @blazetrails/actionpack / ActionDispatch
Variable: ActionDispatch
constActionDispatch:Autoload&CallableMethods<Autoload> & {ActionableExceptions: typeofActionableExceptions;AssertionResponse: typeofAssertionResponse;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: typeofMimeNegotiation;name:string;Parameters: typeofParameters;UploadedFile: typeofUploadedFile; };Integration: {name:string;Session: typeofSession; };IntegrationTest: typeofIntegrationTest;Journey:Journey;MissingController: typeofMissingController;RemoteIp: typeofRemoteIp;Request: typeofRequest;RequestEncoder?: typeofRequestEncoder;Routing:Autoload&CallableMethods<Autoload> & {HtmlTableFormatter: typeofHtmlTableFormatter;PolymorphicRoutes:__module;RouteSet: typeofRouteSet;RoutesProxy: typeofRoutesProxy;UrlFor: {_routesContext: { };_withRoutes: { };fullUrlFor: { };optimizeRoutesGeneration: { };routeFor: (this,name, ...args) =>string;urlFor: (this,options?) =>string;urlOptions: (this) =>Record<string,unknown>; }; };Session:Autoload&CallableMethods<Autoload> & {AbstractSecureStore: typeofAbstractSecureStore;AbstractStore: typeofAbstractStore;CacheStore: typeofCacheStore;Compatibility: {DEFAULT_SAME_SITE: (request) =>unknown;generateSid:string; };CookieStore: typeofCookieStore;MemCacheStore: typeofMemCacheStore;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: typeofTestRequest;TestResponse: typeofTestResponse; }
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
| Parameter | Type |
|---|---|
this | AssertionResponseHost |
urlOptions | unknown |
options | string | { status?: string | number; } |
message? | string |
Returns
true
Assertions.ResponseAssertions.assertResponse
assertResponse: (
this,type,message?) =>void
Parameters
| Parameter | Type |
|---|---|
this | AssertionResponseHost |
type | string | 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
Http
Http: {
Cache:__module;FilterParameters:__module;MimeNegotiation: typeofMimeNegotiation;name:string;Parameters: typeofParameters;UploadedFile: typeofUploadedFile; }
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: typeofSession; }
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?
optionalRequestEncoder?: typeofRequestEncoder
Routing
Routing:
Autoload&CallableMethods<Autoload> & {HtmlTableFormatter: typeofHtmlTableFormatter;PolymorphicRoutes:__module;RouteSet: typeofRouteSet;RoutesProxy: typeofRoutesProxy;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
| Parameter | Type |
|---|---|
this | UrlForHost |
name | string |
...args | unknown[] |
Returns
string
UrlFor.urlFor
urlFor: (
this,options?) =>string
Parameters
| Parameter | Type |
|---|---|
this | UrlForHost |
options? | UrlForOptions |
Returns
string
UrlFor.urlOptions
urlOptions: (
this) =>Record<string,unknown>
Parameters
| Parameter | Type |
|---|---|
this | UrlForHost |
Returns
Record<string, unknown>
Session
Session:
Autoload&CallableMethods<Autoload> & {AbstractSecureStore: typeofAbstractSecureStore;AbstractStore: typeofAbstractStore;CacheStore: typeofCacheStore;Compatibility: {DEFAULT_SAME_SITE: (request) =>unknown;generateSid:string; };CookieStore: typeofCookieStore;MemCacheStore: typeofMemCacheStore;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
| Parameter | Type |
|---|---|
request | Request |
Returns
unknown
Compatibility.generateSid()
generateSid(
this):string
Parameters
| Parameter | Type |
|---|---|
this | unknown |
Returns
string
CookieStore
CookieStore: typeof
CookieStore
MemCacheStore
MemCacheStore: typeof
MemCacheStore
resolveStore()
resolveStore(
sessionStore):unknown
Parameters
| Parameter | Type |
|---|---|
sessionStore | string |
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
| Parameter | Type |
|---|---|
this | TestProcessHost |
_key? | string | symbol |
Returns
never
TestProcess.cookies
cookies: (
this) =>CookieJar
Parameters
| Parameter | Type |
|---|---|
this | TestProcessHost |
Returns
TestProcess.fileFixtureUpload
fileFixtureUpload: (
this,path,mimeType?,binary) =>UploadedFile
Parameters
| Parameter | Type | Default value |
|---|---|---|
this | TestProcessHost | undefined |
path | string | Pathname | undefined |
mimeType? | string | null | undefined |
binary? | boolean | false |
Returns
UploadedFile
TestProcess.fixtureFileUpload
fixtureFileUpload: (
this,path,mimeType?,binary) =>UploadedFile
Parameters
| Parameter | Type | Default value |
|---|---|---|
this | TestProcessHost | undefined |
path | string | Pathname | undefined |
mimeType? | string | null | undefined |
binary? | boolean | false |
Returns
UploadedFile
TestProcess.flash
flash: (
this) =>Promise<FlashHash>
Parameters
| Parameter | Type |
|---|---|
this | TestProcessHost |
Returns
Promise<FlashHash>
TestProcess.redirectToUrl
redirectToUrl: (
this) =>string|undefined
Parameters
| Parameter | Type |
|---|---|
this | TestProcessHost |
Returns
string | undefined
TestProcess.session
session: (
this) =>Session
Parameters
| Parameter | Type |
|---|---|
this | TestProcessHost |
Returns
Session
TestRequest
TestRequest: typeof
TestRequest
TestResponse
TestResponse: typeof
TestResponse