Modules
Objects/Functions
SuiteScript 2.0
{ServerResponse}.getHeader({name: {string*}})
N/http Module
ServerResponse.getHeader()
Method Description:
Returns the value or values of a response header. If multiple values are assigned to the header name, the values are returned as an Array.
For more information, see HTTP Header Information.
Returns:
string | string[]
Supported Script Types:
Server scripts
For more information, see SuiteScript 2.0 Script Types.
Governance:
None
Module:
N/http Module
Parent Object:
http.ServerResponse
Sibling Object Members:
ServerResponse Object Members
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=ServerResponse.getHeader(options)
Example:
// Code Example 1
// Add additional code
//...
serverResponse.getHeader({
name: 'Accept-Language'
});
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4321649843.html