IHttpRequestHandler.SendAsync(HttpRequestInfo, 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 an HTTP request and returns the response.
public System.Threading.Tasks.Task<Microsoft.Agents.AI.Workflows.Declarative.HttpRequestResult> SendAsync(Microsoft.Agents.AI.Workflows.Declarative.HttpRequestInfo request, System.Threading.CancellationToken cancellationToken = default);
abstract member SendAsync : Microsoft.Agents.AI.Workflows.Declarative.HttpRequestInfo * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Agents.AI.Workflows.Declarative.HttpRequestResult>
Public Function SendAsync (request As HttpRequestInfo, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpRequestResult)
Parameters
- request
- HttpRequestInfo
The HTTP request to send.
- cancellationToken
- CancellationToken
A token to observe cancellation.
Returns
The HttpRequestResult describing the HTTP response.