IWebContext
Type Alias: IWebContext
IWebContext =
IOperationContext&object
Defined in: packages/core/src/contexts/icontext.ts:291
Represent a context from the web It also fit the express response object
Type Declaration
cookie
cookie: (
name,value,params) =>void
Set a cookie in the browser
Parameters
name
string
value
string
params
any
Returns
void
getHttpContext
getHttpContext: () =>
HttpContext
Get the http context
Returns
redirect
redirect: (
url) =>void
Redirect the user to another page
Parameters
url
string
Returns
void
setParameters
setParameters: (
params) =>void
Parameters
params
object
Returns
void
statusCode
statusCode:
number
Get the status code for the response
writeHead
writeHead: (
statusCode,headers) =>void
Send the header response to the user
Parameters
statusCode
number
headers
any
Returns
void