#pragma once #include namespace Err { constexpr int32_t RESOLVER_TIMEOUT = (0); constexpr int32_t RESOLVER_RETRY = (0); constexpr int32_t CONNECT_TIMEOUT = (30 * 1000 * 1000U); constexpr int32_t SEND_TIMEOUT = (120 * 1000 * 1000U); constexpr int32_t RECV_TIMEOUT = (120 * 1000 * 1000U); constexpr int32_t RECV_BLOCK_SIZE = (1500U); constexpr int32_t RESPONSE_HEADER_MAX = (5000U); constexpr int32_t REDIRECT_MAX = (6U); constexpr int32_t TRY_AUTH_MAX = (6U); constexpr int32_t HTTP_BAD_ID = (2151878912U); constexpr int32_t HTTP_OUT_OF_MEMORY = (2151878690U); constexpr int32_t HTTP_NOT_INITIALIZED = (2151878657U); constexpr int32_t HTTP_SSL_ERROR = (2151878773U); constexpr int32_t HTTP_BAD_SCHEME = (2151878753U); constexpr int32_t HTTP_FAILURE = (2151878755U); constexpr int32_t HTTP_SEND_REQUIRED = (2151878757U); constexpr int32_t HTTP_BAD_PARAM = (2151879166U); } // namespace Err constexpr uint32_t SCE_HTTP_GET = (int)(0); constexpr uint32_t SCE_HTTP_POST = (int)(1); constexpr uint32_t SCE_HTTP_TRUE = (int)(1); constexpr uint32_t SCE_HTTP_FALSE = (int)(0); constexpr uint32_t SCE_HTTP_ENABLE = SCE_HTTP_TRUE; constexpr uint32_t SCE_HTTP_DISABLE = SCE_HTTP_FALSE; constexpr uint32_t SCE_HTTP_USERNAME_MAX_SIZE = 256; constexpr uint32_t SCE_HTTP_PASSWORD_MAX_SIZE = 256;