successCallback( serverResponse ) type

Callback function that is invoked upon a response from the server.

Syntax

successCallback( serverResponse )

Parameters

Name Type Description
serverResponse Object An object containing the response from the server.Contains a 'headers' property, a 'status' property, and a 'responseText' property.


'headers' is an object containing all the headers in the response.


'status' is an integer corresponding to the HTTP status code of the response.  It is important to check the status of
the response, since this success callback is invoked upon any response from the server - including responses that are
not normally thought of as successes (for example, the status code could be 404 or 500).


'responseText' is a string containing the body of the response.

Source

authproxy.js, line 818.