共用方式為


StreamingResponse class

透過 Bot Framework 通訊協定 3 傳送的基本回應類型,具有串流延伸模組傳輸,相當於 HTTP 回應訊息。

屬性

statusCode
streams

方法

addStream(HttpContent)

將新的數據流附件新增至此串流要求。

create(number, HttpContent)

使用傳入的方法、路徑和本文,建立串流回應。

setBody(any)

設定這個串流響應主體的內容。

屬性詳細資料

statusCode

statusCode: number

屬性值

number

streams

streams: HttpContentStream[]

屬性值

方法詳細資料

addStream(HttpContent)

將新的數據流附件新增至此串流要求。

function addStream(content: HttpContent)

參數

content
HttpContent

要包含在新數據流附件中的 Http 內容。

create(number, HttpContent)

使用傳入的方法、路徑和本文,建立串流回應。

static function create(statusCode: number, body?: HttpContent): StreamingResponse

參數

statusCode

number

要用於此要求的 HTTP 動詞。

body
HttpContent

包含其他信息的選擇性主體。

傳回

具有適當狀態代碼並傳入本文的串流回應。

setBody(any)

設定這個串流響應主體的內容。

function setBody(body: any)

參數

body

any

要寫入串流回應本文的 JSON 文字。