Class MaxUrlLengthInterceptor (1.50.0)

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
NameDescription
maxUrlLengthUInt32

Methods

InterceptAsync(HttpRequestMessage, CancellationToken)

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

The HTTP request message.

cancellationTokenCancellationToken

Cancellation token to cancel the operation.

Returns
TypeDescription
Task

Extension Method