StreamingRequest class

使用流式处理扩展传输通过 Bot Framework 协议 3 发送的基本请求类型,等效于 HTTP 请求消息。

属性

path

请求路径;响应为 null。

streams

关联的流列表。

verb

请求谓词,响应时为 null。

方法

addStream(HttpContent)

向此流式处理请求添加新的流附件。

create(string, string, HttpContent)

使用传入的方法、路径和正文创建流式处理请求。

setBody(any)

设置此 streamingRequest 正文的内容。

属性详细信息

path

请求路径;响应为 null。

path: string

属性值

string

streams

关联的流列表。

streams: HttpContentStream[]

属性值

verb

请求谓词,响应时为 null。

verb: string

属性值

string

方法详细信息

addStream(HttpContent)

向此流式处理请求添加新的流附件。

function addStream(content: HttpContent)

参数

content
HttpContent

要包含在新流附件中的 Http 内容。

create(string, string, HttpContent)

使用传入的方法、路径和正文创建流式处理请求。

static function create(method: string, path?: string, body?: HttpContent): StreamingRequest

参数

method

string

用于此请求的 HTTP 谓词。

path

string

可在远程服务器上找到资源的可选路径。

body
HttpContent

要发送到远程服务器的可选正文。

返回

成功后,返回具有相应状态代码和正文的流式处理请求。

setBody(any)

设置此 streamingRequest 正文的内容。

function setBody(body: any)

参数

body

any

要写入 streamingRequest 正文的 JSON 文本。