special variables - elvinzeng/nwf GitHub Wiki
what is special variables
In order to simplify some high frequency use of variable access, we have defined some special variables, just like global variables.
how to access
you can directory access these variables in your function of Validator or Controller without define any formal parameter.
function demoController.getGV()
-- you can access these variables
return {
requestContext = requestContext,
ctx = ctx,
session = session,
request = request,
response = response
};
end
special variables
variables | description |
---|---|
requestContext | request context object |
ctx | alias of request context object |
session | session object |
request | current request object |
response | current response object |