Share via


FunctionContextHttpRequestExtensions.GetHttpRequestDataAsync Method

Definition

Gets the HttpRequestData instance if the invocation is for an http trigger.

public static System.Threading.Tasks.ValueTask<Microsoft.Azure.Functions.Worker.Http.HttpRequestData?> GetHttpRequestDataAsync (this Microsoft.Azure.Functions.Worker.FunctionContext context);
static member GetHttpRequestDataAsync : Microsoft.Azure.Functions.Worker.FunctionContext -> System.Threading.Tasks.ValueTask<Microsoft.Azure.Functions.Worker.Http.HttpRequestData>
<Extension()>
Public Function GetHttpRequestDataAsync (context As FunctionContext) As ValueTask(Of HttpRequestData)

Parameters

context
FunctionContext

The FunctionContext instance.

Returns

HttpRequestData instance if the invocation is http, else null

Applies to