Updated: June 3, 2015
In a Table operations, used to execute the requested table operation and determine the response to the client. In a Custom API, exposes the request object functionality implemented by the Express.js library.
When used in a script registered to a table operation, this object contains the following members:
The following functions are used in table operation scripts:
Executes the default behavior for the operation.
Executes the operation with success or error handlers supplied as options. For more information, see 90f9c218-7b5b-497a-9495-38586a0b910f#overriding.
Writes the default response.
Writes a response with the specified error object.
Writes a custom response with the provided HTTP status code and message body.
The following property is supported in table operations.
Returns a collection of parameters supplied to the request URI as query parameters.
When used in a custom API export, this object contains the following members:
The following function is used in a custom API:
Returns a JSON representation of the named header-value from the HTTP request headers sent in a custom API request. For more information, see Content types and headers.
The following properties of the Express.js request object are commonly used in a custom API.
Returns a collection of all the message headers, as a JSON object. Individual headers are obtained by calling the header function. For more information, see Content types and headers.
Used to access any custom query parameters provided in the request.
Returns the user object, which contains information about the client sending the request.
The request object is always the third argument passed to a registered script function. You must call either execute or respond in your script to make sure that the client receives a response. If you do not do this, the operation times-out.
The request object is passed as the first argument to the function that defines an exported HTTP method in a custom API. This version of the request object uses the express.js library to provide additional functionality to your scripts.