Show / Hide Table of Contents

Interface IHttpUnsuccessfulResponseHandler

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

Namespace: Google.Apis.Http
Assembly: Google.Apis.Core.dll
Syntax
public interface IHttpUnsuccessfulResponseHandler

Methods

HandleResponseAsync(HandleUnsuccessfulResponseArgs)

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.

Declaration
Task<bool> HandleResponseAsync(HandleUnsuccessfulResponseArgs args)
Parameters
Type Name Description
HandleUnsuccessfulResponseArgs args

Handle response argument which contains properties such as the request, response, current failed try.

Returns
Type Description
Task<bool>

Whether this handler has made a change that requires the request to be resent.

Extension Methods

Utilities.ThrowIfNull<T>(T, string)
In this article
Back to top Generated by DocFX