Skip to content

OfflineHttpMessageHandler.SendAsync(HttpRequestMessage, CancellationToken) method

Defined in

Type: OfflineHttpMessageHandler Namespace: Fusillade.Reactive Assembly: Fusillade.Reactive.dll

Applies to

net10.0, net9.0, net8.0, net462, net481

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

Inherited documentation

These docs were inherited from HttpMessageHandler. The member doesn't override them on this type.

Summary: Send an HTTP request as an asynchronous operation.

Parameters

NameTypeDescription
requestHttpRequestMessageThe HTTP request message to send.
cancellationTokenCancellationTokenThe cancellation token to cancel operation.

Returns: Task -- The task object representing the asynchronous operation.

Exceptions

TypeCondition
System.ArgumentNullExceptionThe request was null.
System.OperationCanceledExceptionThe cancellation token was canceled. This exception is stored into the returned task.