AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
HTTP2GetMimeHeadersResult.h
Go to the documentation of this file.
1 /*
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0/
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_HTTP2_HTTP2GETMIMEHEADERSRESULT_H_
17 #define ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_HTTP2_HTTP2GETMIMEHEADERSRESULT_H_
18 
19 #include <string>
20 #include <vector>
21 
24 
25 namespace alexaClientSDK {
26 namespace avsCommon {
27 namespace utils {
28 namespace http2 {
29 
35 public:
38 
40  std::vector<std::string> headers;
41 
47  HTTP2GetMimeHeadersResult(const std::vector<std::string>& headers);
48 
51 
54 
57 
58 private:
65  HTTP2GetMimeHeadersResult(HTTP2SendStatus status, const std::vector<std::string>& headers);
66 };
67 
68 inline HTTP2GetMimeHeadersResult::HTTP2GetMimeHeadersResult(const std::vector<std::string>& headers) :
70  headers{headers} {
71 }
72 
74  HTTP2SendStatus statusIn,
75  const std::vector<std::string>& headersIn) :
76  status{statusIn},
77  headers{headersIn} {
78 }
79 
80 } // namespace http2
81 } // namespace utils
82 } // namespace avsCommon
83 } // namespace alexaClientSDK
84 
85 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_HTTP2_HTTP2GETMIMEHEADERSRESULT_H_
static const avscommon_EXPORT HTTP2GetMimeHeadersResult COMPLETE
Const COMPLETE result.
Definition: HTTP2GetMimeHeadersResult.h:53
static const avscommon_EXPORT HTTP2GetMimeHeadersResult PAUSE
Const PAUSE result.
Definition: HTTP2GetMimeHeadersResult.h:50
HTTP2SendStatus status
The status of the getMimeHeadersLines() operation.
Definition: HTTP2GetMimeHeadersResult.h:37
static const avscommon_EXPORT HTTP2GetMimeHeadersResult ABORT
Const ABORT result.
Definition: HTTP2GetMimeHeadersResult.h:56
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
HTTP2GetMimeHeadersResult(const std::vector< std::string > &headers)
Definition: HTTP2GetMimeHeadersResult.h:68
#define avscommon_EXPORT
Definition: PlatformDefinitions.h:39
std::vector< std::string > headers
The headers returned from getMimeHeaderLines. Only non-empty if status == CONTINUE.
Definition: HTTP2GetMimeHeadersResult.h:40
HTTP2SendStatus
Definition: HTTP2SendStatus.h:27

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0