HttpRequest Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
HttpRequest(String, Int32) |
Initializes a new instance of the HttpRequest class. |
HttpRequest(HttpRequest+HttpMethod, String, Dictionary<String,StringExpression>, Object, String, Int32) |
Initializes a new instance of the HttpRequest class. |
HttpRequest(String, Int32)
Initializes a new instance of the HttpRequest class.
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)
Parameters
- callerPath
- String
Optional, source file full path.
- callerLine
- Int32
Optional, line number in source file.
Applies to
HttpRequest(HttpRequest+HttpMethod, String, Dictionary<String,StringExpression>, Object, String, Int32)
Initializes a new instance of the HttpRequest class.
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)
Parameters
- method
- HttpRequest.HttpMethod
The HTTP method, for example POST, GET, DELETE or PUT.
- url
- String
URL for the request.
- headers
- Dictionary<String,StringExpression>
Optional, the headers of the request.
- body
- Object
Optional, the raw body of the request.
- callerPath
- String
Optional, source file full path.
- callerLine
- Int32
Optional, line number in source file.