HttpHelper 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
http 요청을 읽고 응답하는 데 도움이 되는 메서드가 있는 도우미 클래스입니다.
public static class HttpHelper
type HttpHelper = class
Public Class HttpHelper
- 상속
-
HttpHelper
필드
BotMessageSerializer |
을 사용하여 BotMessageSerializerSettings만든 의 Newtonsoft.Json.JsonSerializer instance. |
BotMessageSerializerSettings |
에서 사용하는 ChannelServiceController의 Newtonsoft.Json.JsonSerializerSettings instance. |
메서드
ReadRequestAsync<T>(HttpRequest) |
들어오는 HttpRequest를 수락하고 를 사용하여 BotMessageSerializer역직렬화합니다. |
WriteResponseAsync(HttpResponse, InvokeResponse) |
가 InvokeResponse 제공되면 의 상태 및 본문은 의 InvokeResponseHttpResponse상태 및 본문을 설정하는 데 사용됩니다. 가 InvokeResponse 제공되지 않으면 의 HttpResponse 상태 200으로 설정됩니다. |