Y.mojito.lib.OutputHandler Class
This is an object used as the single pathway for data to leave a mojit action execution. It is used as a component of the ActionContext object, which uses it to call done and flush in order to complete.
There are two versions of this object, one for the client, and one for the server. This is the server version, which is more complex than the client version.
Constructor
Y.mojito.lib.OutputHandler
-
req -
res -
next
Parameters:
-
reqObjectThe Request object.
-
resObjectThe Response object.
-
nextFunctionThe next function, which should be invokable.
Item Index
Methods
Methods
_configureAppInstance
-
app -
}
Adds Mojito framework components to the Express application instance.
Parameters:
-
appObjectThe Express application instance to Mojito-enable.
-
}Port: number,!~YUIDOC_LINE~! dir: string,!~YUIDOC_LINE~! context: Object,!~YUIDOC_LINE~! appConfig: Object,!~YUIDOC_LINE~! verbose: booleanoptions An object containing server options.
createServer
-
options
Creates a properly configured MojitoServer instance and returns it.
Parameters:
-
optionsObjectOptions for starting the app.
Returns:
include
-
path
Allows the bin/mojito command to leverage the current module's relative path for initial startup loading.
Parameters:
-
pathStringThe path used to locate resources.
