HttpRequest 构造函数

定义

重载

HttpRequest(String, Int32)

初始化 HttpRequest 类的新实例。

HttpRequest(HttpRequest+HttpMethod, String, Dictionary<String,StringExpression>, Object, String, Int32)

初始化 HttpRequest 类的新实例。

HttpRequest(String, Int32)

初始化 HttpRequest 类的新实例。

public HttpRequest (string callerPath = "", int callerLine = 0);
new Microsoft.Bot.Builder.Dialogs.Adaptive.Actions.HttpRequest : string * int -> Microsoft.Bot.Builder.Dialogs.Adaptive.Actions.HttpRequest
Public Sub New (Optional callerPath As String = "", Optional callerLine As Integer = 0)

参数

callerPath
String

可选,源文件完整路径。

callerLine
Int32

可选,源文件中的行号。

适用于

HttpRequest(HttpRequest+HttpMethod, String, Dictionary<String,StringExpression>, Object, String, Int32)

初始化 HttpRequest 类的新实例。

public HttpRequest (Microsoft.Bot.Builder.Dialogs.Adaptive.Actions.HttpRequest.HttpMethod method, string url, System.Collections.Generic.Dictionary<string,AdaptiveExpressions.Properties.StringExpression> headers = default, object body = default, string callerPath = "", int callerLine = 0);
new Microsoft.Bot.Builder.Dialogs.Adaptive.Actions.HttpRequest : Microsoft.Bot.Builder.Dialogs.Adaptive.Actions.HttpRequest.HttpMethod * string * System.Collections.Generic.Dictionary<string, AdaptiveExpressions.Properties.StringExpression> * obj * string * int -> Microsoft.Bot.Builder.Dialogs.Adaptive.Actions.HttpRequest
Public Sub New (method As HttpRequest.HttpMethod, url As String, Optional headers As Dictionary(Of String, StringExpression) = Nothing, Optional body As Object = Nothing, Optional callerPath As String = "", Optional callerLine As Integer = 0)

参数

method
HttpRequest.HttpMethod

HTTP 方法,例如 POST、GET、DELETE 或 PUT。

url
String

请求的 URL。

headers
Dictionary<String,StringExpression>

(可选)请求的标头。

body
Object

可选,请求的原始正文。

callerPath
String

可选,源文件完整路径。

callerLine
Int32

可选,源文件中的行号。

适用于