Table of Contents

Class FluxzyHttp2Handler

Namespace
Fluxzy.Clients.DotNetBridge
Assembly
Fluxzy.Core.dll

An HttpMessageHandler that uses fluxzy internals to send requests and forces connection to be HTTP/2. Unless you know what you are doing, you should not use this class directly instead of HttpClientHandler.

public class FluxzyHttp2Handler : HttpMessageHandler, IDisposable, IAsyncDisposable
Inheritance
FluxzyHttp2Handler
Implements
Inherited Members

Constructors

FluxzyHttp2Handler(H2StreamSetting?)

public FluxzyHttp2Handler(H2StreamSetting? streamSetting = null)

Parameters

streamSetting H2StreamSetting

Methods

Dispose(bool)

Releases the unmanaged resources used by the HttpMessageHandler and optionally disposes of the managed resources.

protected override void Dispose(bool disposing)

Parameters

disposing bool

true to release both managed and unmanaged resources; false to releases only unmanaged resources.

DisposeAsync()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.

public ValueTask DisposeAsync()

Returns

ValueTask

A task that represents the asynchronous dispose operation.

SendAsync(HttpRequestMessage, CancellationToken)

Send an HTTP request as an asynchronous operation.

protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)

Parameters

request HttpRequestMessage

The HTTP request message to send.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<HttpResponseMessage>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

The request was null.