Home Manual Reference Source Test Repository

References

Class Summary

Static Public Class Summary
public

Represents an application providing functionalities specific to Web requests.

public

Represents an error caused by an improper request of the end-user.

Function Summary

Static Public Function Summary
public

Gets the instance of the currently running application.

public

createObject(type: string | object, params: ...*): *

Creates a new object using the dependency injection (DI) container of the application.

public

async errorAction(ctx: Context, next: function)

Manages the application errors.

public

Creates a middleware function managing the application errors.

public

getAlias(alias: string, throwError: boolean): string

Translates a path alias into an actual path.

public

registerType(alias: string): *

Registers a type in the dependency injection (DI) container of the application.

public

Creates a middleware function setting some security-related headers.

public

setAlias(name: string, path: string)

Registers a path alias.

public

statusAction(ctx: Context)

Sends the application status.

public

Creates a middleware function sending the application status.