public class MaxUrlLengthInterceptor : object, IHttpExecuteInterceptorIntercepts HTTP GET requests with a URLs longer than a specified maximum number of characters. The interceptor will change such requests as follows:
Implements
IHttpExecuteInterceptorNamespace
Google.Apis.HttpAssembly
Google.Apis.Core.dll
Constructors
MaxUrlLengthInterceptor(UInt32)
public MaxUrlLengthInterceptor(uint maxUrlLength)Constructs a new Max URL length interceptor with the given max length.
| Parameter | |
|---|---|
| Name | Description |
maxUrlLength |
UInt32 |
Methods
InterceptAsync(HttpRequestMessage, CancellationToken)
public Task InterceptAsync(HttpRequestMessage request, CancellationToken cancellationToken)| Parameters | |
|---|---|
| Name | Description |
request |
HttpRequestMessageThe HTTP request message. |
cancellationToken |
CancellationTokenCancellation token to cancel the operation. |
| Returns | |
|---|---|
| Type | Description |
Task |
|