Class: nlobjServerResponse

nlobjServerResponse

new nlobjServerResponse() → {nlobjServerResponse}

Return a new instance of nlobjServerResponse..
Since:
  • 2008.1
Source:
Returns:
Type
nlobjServerResponse

Methods

getAllHeaders() → {string[]}

return an Array of all headers returned.
Since:
  • 2008.1
Source:
Returns:
Type
string[]

getBody() → {string}

return the response body returned.
Since:
  • 2008.1
Source:
Returns:
Type
string

getCode() → {int}

return the response code returned.
Since:
  • 2008.1
Source:
Returns:
Type
int

getContentType() → {string}

return the Content-Type header in response
Since:
  • 2008.1
Source:
Returns:
Type
string

getError() → {nlobjError}

return the nlobjError thrown via a client call to nlapiRequestURL.
Since:
  • 2008.1
Source:
Returns:
Type
nlobjError

getHeader(name) → {string}

return the value of a header returned.
Parameters:
Name Type Description
name string the name of the header to return
Since:
  • 2008.1
Source:
Returns:
Type
string

getHeaders(name) → {string[]}

return all the values of a header returned.
Parameters:
Name Type Description
name string the name of the header to return
Since:
  • 2008.1
Source:
Returns:
Type
string[]