DefaultHttpRequestHandler.SendAsync Method

Definition

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>
override this.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.

Implements

Applies to