N/scriptTypes/restlet Module
Use the N/scriptTypes/restlet module to create custom HTTP responses for your RESTlet script.
Note:
This module is available only to the RESTlet script type.
In This Help Topic
N/scriptTypes/restlet Module Members
Member Type |
Name |
Return Type / Value Type |
Supported Script Types |
Description |
---|---|---|---|---|
Object |
Object (read-only) |
RESTlet script |
An HTTP response of a RESTlet script. |
|
Method |
RESTlet script |
Creates a custom HTTP response for a RESTlet script. |
Response Object Members
The following members are called on the restlet.Response object.
Member Type |
Name |
Return Type / Value Type |
Supported Script Types |
Description |
---|---|---|---|---|
Property |
string (read-only) |
RESTlet script |
The content of the RESTlet HTTP response. |
|
string (read-only) |
RESTlet script |
The Content-Type header of the RESTlet HTTP response. |