Modules
Objects/Functions
SuiteScript 2.0
http.Method.{|DELETE,GET,HEAD,PUT,POST|}
N/http Module
http.Method
Enum Description:
Holds the string values for supported HTTP requests. This enum is used to set the value of http.request(options) and ServerRequest.method.
Supported Script Types:
Server scripts
For more information, see SuiteScript 2.0 Script Types.
Module:
N/http Module
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=http.Method
Example:
// Code Example 1
// Add additional code
//...
var response = http.request({
method: http.Method.GET,
url: 'http://www.google.com'
});
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4426027649.html