Compartilhar via


HttpRequestDataExtensions.CreateResponse Método

Definição

Cria uma resposta para o fornecido HttpRequestData.

public static Microsoft.Azure.Functions.Worker.Http.HttpResponseData CreateResponse (this Microsoft.Azure.Functions.Worker.Http.HttpRequestData request, System.Net.HttpStatusCode statusCode);
static member CreateResponse : Microsoft.Azure.Functions.Worker.Http.HttpRequestData * System.Net.HttpStatusCode -> Microsoft.Azure.Functions.Worker.Http.HttpResponseData
<Extension()>
Public Function CreateResponse (request As HttpRequestData, statusCode As HttpStatusCode) As HttpResponseData

Parâmetros

request
HttpRequestData

O HttpRequestData para essa resposta.

statusCode
HttpStatusCode

A resposta status código.

Retornos

Os dados de resposta.

Aplica-se a