Modules

filter

 

Objects/Functions

module (N/http)

SuiteScript 2.0

http.ServerResponse

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

N/http Module
http.ServerResponse
Object Description: The response from an HTTP server (e.g., Suitelet or RESTlet) to an HTTP request from a server, such as a user event script. For a complete list of this object’s methods and properties, see ServerResponse Object Members.
Supported Script Types: Server scripts For more information, see SuiteScript 2.0 Script Types.
Module: N/http Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=http.ServerResponse

Example:

// Code Example 1
// Add additional code
//...
serverResponse.addHeader({
name: 'Accept-Language',
value: 'en-us',
});
//...
// Add additional code

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