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

HTTP request execute interceptor to intercept a System.Net.Http.HttpRequestMessage before it has been sent. Sample usage is attaching "Authorization" header to a request. More...

Inheritance diagram for Google.Apis.Http.IHttpExecuteInterceptor:
Google.Apis.Auth.OAuth2.ServiceCredential Google.Apis.Auth.OAuth2.UserCredential Google.Apis.Http.MaxUrlLengthInterceptor Google.Apis.Auth.OAuth2.ComputeCredential Google.Apis.Auth.OAuth2.ServiceAccountCredential

Public Member Functions

Task InterceptAsync (HttpRequestMessage request, CancellationToken cancellationToken)
 

Detailed Description

HTTP request execute interceptor to intercept a System.Net.Http.HttpRequestMessage before it has been sent. Sample usage is attaching "Authorization" header to a request.

Member Function Documentation

Task Google.Apis.Http.IHttpExecuteInterceptor.InterceptAsync ( HttpRequestMessage  request,
CancellationToken  cancellationToken 
)

Invoked before the request is being sent.

Parameters
requestThe HTTP request message.
cancellationTokenCancellation token to cancel the operation.

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


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