StreamingRequest.CreateRequest(String, String, HttpContent) Method
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.
Creates a StreamingRequest with the passed in method, path, and body.
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
Parameters
- method
- String
The HTTP verb to use for this request.
- path
- String
Optional path where the resource can be found on the remote server.
- body
- HttpContent
Optional body to send to the remote server.
Returns
On success returns a StreamingRequest with appropriate status code and body, otherwise returns null.