Show / Hide Table of Contents

Class MaxUrlLengthInterceptor

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

Inheritance
System.Object
MaxUrlLengthInterceptor
Implements
IHttpExecuteInterceptor
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Http
Assembly: Google.Apis.Core.dll
Syntax
public class MaxUrlLengthInterceptor : IHttpExecuteInterceptor

Constructors

MaxUrlLengthInterceptor(UInt32)

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

Declaration
public MaxUrlLengthInterceptor(uint maxUrlLength)
Parameters
Type Name Description
System.UInt32 maxUrlLength

Methods

InterceptAsync(HttpRequestMessage, CancellationToken)

Invoked before the request is being sent.
Declaration
public Task InterceptAsync(HttpRequestMessage request, CancellationToken cancellationToken)
Parameters
Type Name Description
System.Net.Http.HttpRequestMessage request

The HTTP request message.

System.Threading.CancellationToken cancellationToken

Cancellation token to cancel the operation.

Returns
Type Description
System.Threading.Tasks.Task

Implements

IHttpExecuteInterceptor

Extension Methods

Utilities.ThrowIfNull<T>(T, String)
In This Article
Back to top