StreamingResponse.CreateResponse(HttpStatusCode, HttpContent) 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.
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.