语言

StreamingRequest.CreatePost(String, HttpContent) 方法

定义

创建一个 StreamingRequest 数据,将数据发布到远程服务器。

public static Microsoft.Bot.Streaming.StreamingRequest CreatePost(string path = default, System.Net.Http.HttpContent body = default);
static member CreatePost : string * System.Net.Http.HttpContent -> Microsoft.Bot.Streaming.StreamingRequest
Public Shared Function CreatePost (Optional path As String = Nothing, Optional body As HttpContent = Nothing) As StreamingRequest

参数

path
String

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

body
HttpContent

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

返回

StreamingRequest A,带有相应的状态代码和正文。

适用于