Share via


StreamingRequest.CreateRequest(String, String, HttpContent) Method

Definition

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.

Applies to