CakeHttpClientHandler.

SendAsync(HttpRequestMessage, CancellationToken) Method

Summary

Sends an HTTP request to the inner handler to send to the server as an asynchronous operation.
Assembly
Cake.Http.dll
Namespace
Cake.Http
Containing Type
CakeHttpClientHandler

Syntax

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

Attributes

Type Description
AsyncStateMachineAttribute

Parameters

Name Type Description
request HttpRequestMessage The HTTP request message to send to the server.
cancellationToken CancellationToken A cancellation token to cancel operation.

Return Value

Type Description
Task<HttpResponseMessage> Returns System.Threading.Tasks.Task`1. The task object representing the asynchronous