new nlobjServerResponse() → {nlobjServerResponse}
Return a new instance of nlobjServerResponse..
- Since:
- 2008.1
- Source:
- nlapihandler_stubs.js, line 2980
Returns:
- Type
- nlobjServerResponse
Methods
-
getAllHeaders() → {string[]}
-
return an Array of all headers returned.
- Since:
- 2008.1
- Source:
- nlapihandler_stubs.js, line 3026
Returns:
- Type
- string[]
-
getBody() → {string}
-
return the response body returned.
- Since:
- 2008.1
- Source:
- nlapihandler_stubs.js, line 3048
Returns:
- Type
- string
-
getCode() → {int}
-
return the response code returned.
- Since:
- 2008.1
- Source:
- nlapihandler_stubs.js, line 3037
Returns:
- Type
- int
-
getContentType() → {string}
-
return the Content-Type header in response
- Since:
- 2008.1
- Source:
- nlapihandler_stubs.js, line 2991
Returns:
- Type
- string
-
getError() → {nlobjError}
-
return the nlobjError thrown via a client call to nlapiRequestURL.
- Since:
- 2008.1
- Source:
- nlapihandler_stubs.js, line 3059
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:
- nlapihandler_stubs.js, line 3003
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:
- nlapihandler_stubs.js, line 3015
Returns:
- Type
- string[]