Show / Hide Table of Contents

Class Http11EnforcingHandler

Kiota forces HTTP/2 for all requests, but HttpClientHandler on .NET Framework does not support HTTP/2. We work around this by forcing HTTP/1.1 when using on .NET Framework.

Inheritance
object
HttpMessageHandler
DelegatingHandler
Http11EnforcingHandler
Implements
IDisposable
Inherited Members
DelegatingHandler.Dispose(bool)
DelegatingHandler.InnerHandler
HttpMessageHandler.Dispose()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.Util
Assembly: SoDataBase.BusinessLogic.dll
Syntax
public class Http11EnforcingHandler : DelegatingHandler, IDisposable

Constructors

Http11EnforcingHandler(HttpMessageHandler)

Kiota forces HTTP/2 for all requests, but HttpClientHandler on .NET Framework does not support HTTP/2. We work around this by forcing HTTP/1.1 when using on .NET Framework.

Declaration
public Http11EnforcingHandler(HttpMessageHandler innerHandler)
Parameters
Type Name Description
HttpMessageHandler innerHandler

Methods

SendAsync(HttpRequestMessage, CancellationToken)

Kiota forces HTTP/2 for all requests, but HttpClientHandler on .NET Framework does not support HTTP/2. We work around this by forcing HTTP/1.1 when using on .NET Framework.

Declaration
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
Parameters
Type Name Description
HttpRequestMessage request
CancellationToken cancellationToken
Returns
Type Description
Task<HttpResponseMessage>
Overrides
DelegatingHandler.SendAsync(HttpRequestMessage, CancellationToken)

Implements

IDisposable

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top