Jaa


HttpHelper Class

Definition

Helper class with methods to help with reading and responding to http requests.

public static class HttpHelper
type HttpHelper = class
Public Class HttpHelper
Inheritance
HttpHelper

Fields

BotMessageSerializer

An instance of Newtonsoft.Json.JsonSerializer created using BotMessageSerializerSettings.

BotMessageSerializerSettings

An instance of Newtonsoft.Json.JsonSerializerSettings used by the ChannelServiceController.

Methods

ReadRequestAsync<T>(HttpRequest)

Accepts an incoming HttpRequest and deserializes it using the BotMessageSerializer.

WriteResponseAsync(HttpResponse, InvokeResponse)

If an InvokeResponse is provided the status and body of the InvokeResponse are used to set the status and body of the HttpResponse. If no InvokeResponse is provided then the status of the HttpResponse is set to 200.

Applies to