-
Notifications
You must be signed in to change notification settings - Fork 4
Constants
The Server object exposes a CONSTANTS field. This is a description of those constants.
The name of the parameter containing the request body. In a when function you would access this as input[server.CONSTANTS.REQUEST_BODY]
The name of the object containing the query parameters (everything after the ? in the URL) as an object.
The name of the variable containing the raw HTTP request.
The name of the variable containing the URL variables object. This object contains the vars as { varName: value ). In /clients/:clientId/files if the user navigated to /clients/22/files the object would contain {clientId : '22'}.
The name of the variable containing the parsed URL.
The name of the variable containing the wildcard portion of the path. In the path /clients/* if the user navigated to /clients/22/files the variable at this name would contain 22/files.
The name of the content type header key which you can use to set the content type header.
The name of the content length header key which you can use to set the content length header.
The name of the content disposition header key.
The name of the last modified header key.
The name of the cookie header key.
Docs
Tutorials