Language

HttpHelper クラス

定義

httpリクエストの読み取りや応答を助けるメソッドを持つヘルパークラス。

public static class HttpHelper
type HttpHelper = class
Public Class HttpHelper
継承
HttpHelper

フィールド

名前 説明
BotMessageSerializer

BotMessageSerializerSettingsを用いて作成されたNewtonsoft.Json.JsonSerializerのインスタンスです。

BotMessageSerializerSettings

ChannelServiceControllerが使ったNewtonsoft.Json.JsonSerializerSettingsの例。

メソッド

名前 説明
ReadRequestAsync<T>(HttpRequest)

受信するHttpRequestを受け入れ、 BotMessageSerializerを使ってデシリアライズします。

WriteResponseAsync(HttpResponse, InvokeResponse)

InvokeResponseが提供されている場合、InvokeResponseのステータスと本体がHttpResponseのステータスと本体を設定するために用いられます。 InvokeResponseが提供されない場合、HttpResponseのステータスは200に設定されます。

適用対象