Beispiel #1
0
    private void OnResponseError(HTTPRequest request, HTTPResponse response, HttpManager.Callback callback)
    {
        callback(null, response.StatusCode, "error." + response.StatusCode);

        if (request.Exception != null)
        {
            Debug.Log(request.Exception);
            Debug.Log(request.CurrentUri);
        }
        request.Dispose();
        response.Dispose();
    }