語言

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

請求的網址。

headers
Dictionary<String,StringExpression>

可選的是請求的標頭。

body
Object

可選的是請求的原始內容。

callerPath
String

可選的原始檔案完整路徑。

callerLine
Int32

可選,在原始檔案中加入行號。

適用於