Class MaxUrlLengthInterceptor

public class MaxUrlLengthInterceptor : object, IHttpExecuteInterceptor

Intercepts HTTP GET requests with a URLs longer than a specified maximum number of characters. The interceptor will change such requests as follows:

Inheritance

Object > MaxUrlLengthInterceptor

Namespace

Google.Apis.Http

Assembly

Google.Apis.Core.dll

Constructors

MaxUrlLengthInterceptor(UInt32)

public MaxUrlLengthInterceptor(uint maxUrlLength)

Constructs a new Max URL length interceptor with the given max length.

Parameter
TypeNameDescription
UInt32maxUrlLength

Methods

InterceptAsync(HttpRequestMessage, CancellationToken)

public Task InterceptAsync(HttpRequestMessage request, CancellationToken cancellationToken)
Invoked before the request is being sent.
Parameters
TypeNameDescription
HttpRequestMessagerequest

The HTTP request message.

CancellationTokencancellationToken

Cancellation token to cancel the operation.

Returns
TypeDescription
Task

Implements

Extension Method