AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
HTTP2SendDataResult.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_HTTP2SENDDATARESULT_H_
17 #define ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_HTTP2_HTTP2SENDDATARESULT_H_
18 
19 #include <cstddef>
20 
23 
24 namespace alexaClientSDK {
25 namespace avsCommon {
26 namespace utils {
27 namespace http2 {
28 
35 
37  size_t size;
38 
44  explicit HTTP2SendDataResult(size_t size);
45 
48 
51 
54 
55 private:
62  HTTP2SendDataResult(HTTP2SendStatus status, size_t size);
63 };
64 
66 }
67 
68 inline HTTP2SendDataResult::HTTP2SendDataResult(HTTP2SendStatus statusIn, size_t sizeIn) :
69  status{statusIn},
70  size{sizeIn} {
71 }
72 
73 } // namespace http2
74 } // namespace utils
75 } // namespace avsCommon
76 } // namespace alexaClientSDK
77 
78 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_HTTP2_HTTP2SENDDATARESULT_H_
HTTP2SendStatus status
The status of the send data operation.
Definition: HTTP2SendDataResult.h:34
size_t size
The number of bytes copied. This value should only be non-zero if status == CONTINUE.
Definition: HTTP2SendDataResult.h:37
static const avscommon_EXPORT HTTP2SendDataResult COMPLETE
Const COMPLETE result.
Definition: HTTP2SendDataResult.h:50
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
HTTP2SendDataResult(size_t size)
Definition: HTTP2SendDataResult.h:65
static const avscommon_EXPORT HTTP2SendDataResult ABORT
Const ABORT result.
Definition: HTTP2SendDataResult.h:53
static const avscommon_EXPORT HTTP2SendDataResult PAUSE
Const PAUSE result.
Definition: HTTP2SendDataResult.h:47
#define avscommon_EXPORT
Definition: PlatformDefinitions.h:39
HTTP2SendStatus
Definition: HTTP2SendStatus.h:27

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