HttpHelper Class
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.
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. |