CompressionHandler.SendAsync(HttpRequestMessage, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sends a HTTP request.
protected override System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> SendAsync (System.Net.Http.HttpRequestMessage httpRequest, System.Threading.CancellationToken cancellationToken);
override this.SendAsync : System.Net.Http.HttpRequestMessage * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
Protected Overrides Function SendAsync (httpRequest As HttpRequestMessage, cancellationToken As CancellationToken) As Task(Of HttpResponseMessage)
Parameters
- httpRequest
- HttpRequestMessage
The HttpRequestMessage to be sent.
- cancellationToken
- CancellationToken
The CancellationToken for the request.