ClientResponse.body

Note:

The content in this help topic pertains to SuiteScript 2.0.

Property Description

The client response body.

Type

string (read-only)

Supported Script Types

Server scripts

For more information, see SuiteScript 2.x Script Types.

Module

N/http Module

Parent Object

http.ClientResponse

Sibling Object Members

ClientResponse Object Members

Since

2015.2

Errors

Error Code

Thrown If

READ_ONLY_PROPERTY

You attempted to edit this property. This property is read-only.

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/http Module Script Samples.

          // Add additional code 
...
var response = http.get({
    url: 'http://www.google.com'
});
log.debug({
    title: 'Client Response Body',
    details: response.body
});
...
// Add additional code 

        

Related Topics

http.ClientResponse
N/http Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices