语言

StreamingRequest.CreateRequest(String, String, HttpContent) 方法

定义

用传递入的方法、路径和正体创建 a StreamingRequest 。

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

参数

method
String

要用于此请求的 HTTP 谓词。

path
String

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

body
HttpContent

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

返回

成功时返回带有相应状态码和正文的a StreamingRequest ,否则返回空。

适用于