coreHTTP v3.0.0
HTTP/1.1 Client Library
core_http_config_defaults.h
Go to the documentation of this file.
1/*
2 * coreHTTP v3.0.0
3 * Copyright (C) 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4 *
5 * SPDX-License-Identifier: MIT
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy of
8 * this software and associated documentation files (the "Software"), to deal in
9 * the Software without restriction, including without limitation the rights to
10 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
11 * the Software, and to permit persons to whom the Software is furnished to do so,
12 * subject to the following conditions:
13 *
14 * The above copyright notice and this permission notice shall be included in all
15 * copies or substantial portions of the Software.
16 *
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
19 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
20 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
21 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 */
24
37#ifndef CORE_HTTP_CONFIG_DEFAULTS_
38#define CORE_HTTP_CONFIG_DEFAULTS_
39
40/* *INDENT-OFF* */
41#ifdef __cplusplus
42 extern "C" {
43#endif
44/* *INDENT-ON* */
45
56#ifndef HTTP_USER_AGENT_VALUE
57 #define HTTP_USER_AGENT_VALUE "my-platform-name"
58#endif
59
80#ifndef HTTP_RECV_RETRY_TIMEOUT_MS
81 #define HTTP_RECV_RETRY_TIMEOUT_MS ( 10U )
82#endif
83
103#ifndef HTTP_SEND_RETRY_TIMEOUT_MS
104 #define HTTP_SEND_RETRY_TIMEOUT_MS ( 10U )
105#endif
106
123#ifndef LogError
124 #define LogError( message )
125#endif
126
143#ifndef LogWarn
144 #define LogWarn( message )
145#endif
146
163#ifndef LogInfo
164 #define LogInfo( message )
165#endif
166
183#ifndef LogDebug
184 #define LogDebug( message )
185#endif
186
187/* *INDENT-OFF* */
188#ifdef __cplusplus
189 }
190#endif
191/* *INDENT-ON* */
192
193#endif /* ifndef CORE_HTTP_CONFIG_DEFAULTS_ */