MessageProcessingHandler.Send(HttpRequestMessage, CancellationToken) Method

Definition

Sends an HTTP request to the inner handler to send to the server.

protected internal override sealed System.Net.Http.HttpResponseMessage Send (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken);

Parameters

request
HttpRequestMessage

The HTTP request message to send to the server.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

The HTTP response message.

Exceptions

The cancellation token was canceled. This exception is stored into the returned task.

Applies to

Produs Versiuni
.NET 5, 6, 7, 8, 9