Class Context
Hierarchy
-
EventEmitter
- Context
Properties
Methods
Properties
Methods
-
Parameters
-
promise: any
Returns void
-
-
Parameters
-
event: string | symbol
-
listener: function
-
-
Parameters
-
Rest ...args: any[]
Returns void
-
-
-
Returns this
-
-
Parameters
-
param: any
-
value: any
-
Default value options: any = undefined
Returns void
-
-
Parameters
-
event: string | symbol
-
Rest ...args: any[]
Returns boolean
-
-
Parameters
-
err: any
Returns void
-
-
Flush the request
Returns Promise<any>
-
Returns Array<string | symbol>
-
Execute the target route
Returns Promise<unknown>
-
Get the current user from session
Type parameters
-
T: User
Returns Promise<T>
-
-
Get the current user id from session
Returns string
-
Return the service handling the request
Returns Service<any>
-
Get current http context
Returns HttpContext
-
Get the request locale if found
Returns string
-
Returns number
-
Returns any
-
Returns any
-
Returns IncomingMessage
-
Parameters
-
Default value sanitizedOptions: any = {allowedTags: [],allowedAttributes: {}}
Returns any
-
-
Returns any
-
Returns any
-
Returns Map<string, Cookie>
-
Get output headers
Returns any
-
Returns any
-
Get a service from webda
Type parameters
-
T: Service
Parameters
-
name: any
of the service
Returns T
-
-
Returns any
-
Returns SessionCookie
-
Get the HTTP stream to output raw data
Returns any
-
Return the webda
Returns Core
-
Returns Promise<void>
-
Returns Promise<any>
-
Returns boolean
-
Express response allow answer to be sent this w
Parameters
-
obj: any
Returns this
-
-
Parameters
-
type: string | symbol
Returns number
-
-
Parameters
-
event: string | symbol
Returns Function[]
-
-
Proxy for simplification
Parameters
-
level: WorkerLogLevel
-
Rest ...args: any[]
Returns void
-
-
Returns SessionCookie
-
Parameters
-
event: string | symbol
-
listener: function
-
-
Parameters
-
Rest ...args: any[]
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: string | symbol
-
listener: function
-
-
Parameters
-
Rest ...args: any[]
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: string | symbol
-
listener: function
-
-
Parameters
-
Rest ...args: any[]
Returns void
-
-
-
Returns this
-
-
Parameters
-
name: string
Returns any
-
-
Parameters
-
event: string | symbol
-
listener: function
-
-
Parameters
-
Rest ...args: any[]
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: string | symbol
-
listener: function
-
-
Parameters
-
Rest ...args: any[]
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: string | symbol
Returns Function[]
-
-
Redirect to another url
Parameters
-
url: string
Returns void
-
-
Returns void
-
Parameters
-
Optional event: string | symbol
Returns this
-
-
Parameters
-
event: string | symbol
-
listener: function
-
-
Parameters
-
Rest ...args: any[]
Returns void
-
-
-
Returns this
-
-
Returns void
-
Parameters
-
executor: any
Set the current executor for this context
Returns void
-
-
Set a header value
Parameters
-
header: any
name
-
value: any
Returns void
-
-
Set current http context
Parameters
-
httpContext: HttpContext
current http context
Returns void
-
-
Parameters
-
n: number
Returns this
-
-
Parameters
-
params: any
Returns void
-
-
Parameters
-
params: any
Returns void
-
-
Express response allow statusCode to be defined this was
Parameters
-
code: number
to return
Returns this
-
-
Write data to the client
Parameters
-
output: any
If it is an object it will be serializeb with toPublicJSON, if it is a String it will be appended to the result, if it is a buffer it will replace the result
-
Optional encoding: string
-
Optional cb: function
-
-
Parameters
-
error: Error
Returns void
-
-
-
Returns boolean
-
-
Write the http return code and some headers Those headers are not flushed yet so can still be overwritten
Parameters
-
statusCode: number
to return to the client
-
Default value headers: OutgoingHttpHeaders = undefined
to add to the response
Returns this
-
-
Get Global Context
Returns Context
-
Parameters
-
emitter: EventEmitter
-
event: string | symbol
Returns number
-
-
Set the Global Context
Parameters
-
ctx: Context
to set as Global
Returns void
-
Generated using TypeDoc
For compatibility reason