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.
Implements
Inherited Members
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> |