constructor() method from fcf.Context class
Package: fcf-framework-core
File: fcf-framework-core:fcf.js
Available from version: 2.0.2
Class constructor
Arguments
- The Express server request object passed as the first argument to the request handler.
Example: Application
let server = libExpress();
server.use(libExpress.json());
server.post("/index", (a_req, a_res) => {
fcf.setContext( new fcf.Context(a_req) );
a_res.send("");
});
...
{url , postArgs , context } a_info
- An object with the information needed to create the context.
-
string url - Current URL address -
object postArgs - Request arguments to the server passed as POST data. -
object|context context - An object containing context data that is stored in cookies. If the parameter is set as a string, then the data is stored in JSON format encoded in base64.