Google API Client Library for .NET  1.10.0
Public Member Functions | List of all members
Google.Apis.Http.IHttpUnsuccessfulResponseHandler Interface Reference

Unsuccessful response handler which is invoked when an abnormal HTTP response is returned when sending a HTTP request. More...

Inheritance diagram for Google.Apis.Http.IHttpUnsuccessfulResponseHandler:
Google.Apis.Auth.OAuth2.ServiceCredential Google.Apis.Auth.OAuth2.UserCredential Google.Apis.Http.BackOffHandler Google.Apis.Auth.OAuth2.ComputeCredential Google.Apis.Auth.OAuth2.ServiceAccountCredential

Public Member Functions

Task< bool > HandleResponseAsync (HandleUnsuccessfulResponseArgs args)
 Handles an abnormal response when sending a HTTP request. A simple rule must be followed, if you modify the request object in a way that the abnormal response can be resolved, you must return true. More...
 

Detailed Description

Unsuccessful response handler which is invoked when an abnormal HTTP response is returned when sending a HTTP request.

Member Function Documentation

Task<bool> Google.Apis.Http.IHttpUnsuccessfulResponseHandler.HandleResponseAsync ( HandleUnsuccessfulResponseArgs  args)

Handles an abnormal response when sending a HTTP request. A simple rule must be followed, if you modify the request object in a way that the abnormal response can be resolved, you must return true.

Parameters
argsHandle response argument which contains properties such as the request, response, current failed try.
Returns
Whether this handler has made a change that requires the request to be resent.

Implemented in Google.Apis.Auth.OAuth2.ServiceCredential, Google.Apis.Http.BackOffHandler, and Google.Apis.Auth.OAuth2.UserCredential.


The documentation for this interface was generated from the following file: