Modules

filter

 

Objects/Functions

module (N/https)

SuiteScript 2.0

ServerResponse.headers

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=ServerResponse.headers for more information.

N/https Module
ServerResponse.headers
Property Description: The server response headers. For more information, see HTTPS Header Information.
Type: Object (read-only) Note that If multiple values are assigned to one header name, the values are returned as an array. For example:
Supported Script Types: Server scripts For more information, see SuiteScript 2.0 Script Types.
Module: N/https Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=ServerResponse.headers

Example:

// Code Example 1
{Vary: ['Accept-Language', 'Accept-Encoding']}

// Code Example 2
// Add additional code
//...
log.debug({
title: "Server Response Headers",
details: serverResponse.headers
});
//...
// Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4567631816.html