Request object
The feature described in this topic is available only in preview. To use this feature and other new Windows Azure capabilities, sign up for the free preview.
Used to execute the requested operation and determine the response to the client.
This object contains the following members:
Methods
execute
| Syntax | Returns | Description |
|---|---|---|
|
|
undefined |
Executes the default behavior for the operation. |
|
|
undefined |
Executes the operation with success or error handlers supplied as options. For more information, see Overriding success and error. |
respond
| Syntax | Returns | Description |
|---|---|---|
|
|
undefined |
Writes the default response. |
|
|
undefined |
Writes a response with the specified error object. |
|
|
undefined |
Writes a custom response with the provided HTTP status code and message body. |
Windows Azure Mobile Services enables you to register JavaScript code to be executed by the service when an insert, update, delete, or query operation occurs against a specific table. These scripts provide the ability to inject business logic into table operation, stop an operation from taking place, change values supplied to the operation or change the results. For more information, see How to: Register scripts on the server.
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 will timeout.