StreamingResponse.CreateResponse(HttpStatusCode, HttpContent) Method

Definition

Creates a response using the passed in statusCode and optional body.

public static Microsoft.Bot.Streaming.StreamingResponse CreateResponse (System.Net.HttpStatusCode statusCode, System.Net.Http.HttpContent body = default);
static member CreateResponse : System.Net.HttpStatusCode * System.Net.Http.HttpContent -> Microsoft.Bot.Streaming.StreamingResponse
Public Shared Function CreateResponse (statusCode As HttpStatusCode, Optional body As HttpContent = Nothing) As StreamingResponse

Parameters

statusCode
HttpStatusCode

The HttpStatusCode to set on the StreamingResponse.

body
HttpContent

An optional body containing additional information.

Returns

A response with the appropriate statuscode and passed in body.

Applies to