StreamingResponse Class

Definition

Implementation split between Response and ResponseEx. The basic response type sent over Bot Framework Protocol 3 with Streaming Extensions transports, equivalent to HTTP response messages.

public class StreamingResponse
type StreamingResponse = class
Public Class StreamingResponse
Inheritance
StreamingResponse

Constructors

StreamingResponse()

Properties

StatusCode

Gets or sets the numeric status code for the response.

Streams

Gets or sets the collection of streams attached to this response.

Methods

AddStream(HttpContent)

Adds a new stream to the passed in StreamingResponse containing the passed in content. Throws ArgumentNullException if content is null.

CreateResponse(HttpStatusCode, HttpContent)

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

Forbidden(HttpContent)

Creates a response indicating the requested resource is forbidden.

InternalServerError(HttpContent)

Creates a response indicating the server encountered an error while processing the request.

NotFound(HttpContent)

Creates a response indicating the requested resource was not found.

OK(HttpContent)

Creates a response indicating the request was successful.

Extension Methods

SetBody(StreamingResponse, Object)

Adds a new stream to this StreamingResponse containing the passed in body. Noop on null body or null response.

SetBody(StreamingResponse, String)

Adds a new stream to this StreamingResponse containing the passed in body. Noop on empty body or null response.

Applies to