Response.contentType
Property Description |
The Content-Type header of the RESTlet HTTP response. |
Type |
string (read-only) |
Module |
|
Parent Object |
|
Sibling Object Members |
|
Since |
2024.1 |
Syntax
Important:
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/scriptTypes/restlet Module Script Sample.
// Add additional code
...
log.debug({
title: 'Response Content-Type header: ',
details: response.contentType
});
...
// Add additional code