IHttpProvider.SendAsync 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.
Overloads
SendAsync(HttpRequestMessage) |
Sends the request. |
SendAsync(HttpRequestMessage, HttpCompletionOption, CancellationToken) |
Sends the request. |
SendAsync(HttpRequestMessage)
Sends the request.
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> SendAsync (System.Net.Http.HttpRequestMessage request);
abstract member SendAsync : System.Net.Http.HttpRequestMessage -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
Public Function SendAsync (request As HttpRequestMessage) As Task(Of HttpResponseMessage)
Parameters
- request
- HttpRequestMessage
The HttpRequestMessage to send.
Returns
The HttpResponseMessage.
Applies to
SendAsync(HttpRequestMessage, HttpCompletionOption, CancellationToken)
Sends the request.
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> SendAsync (System.Net.Http.HttpRequestMessage request, System.Net.Http.HttpCompletionOption completionOption, System.Threading.CancellationToken cancellationToken);
abstract member SendAsync : System.Net.Http.HttpRequestMessage * System.Net.Http.HttpCompletionOption * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
Public Function SendAsync (request As HttpRequestMessage, completionOption As HttpCompletionOption, cancellationToken As CancellationToken) As Task(Of HttpResponseMessage)
Parameters
- request
- HttpRequestMessage
The HttpRequestMessage to send.
- completionOption
- HttpCompletionOption
The HttpCompletionOption to pass to the IHttpProvider on send.
- cancellationToken
- CancellationToken
The CancellationToken for the request.
Returns
The HttpResponseMessage.