1 /* 2 * Copyright (C) 2015-2020 Alibaba Group Holding Limited 3 */ 4 5 #ifndef HTTP_OPTS_H 6 #define HTTP_OPTS_H 7 8 #ifndef HTTPCLIENT_AUTHB_SIZE 9 #define HTTPCLIENT_AUTHB_SIZE 128 10 #endif 11 12 #ifndef HTTPCLIENT_CHUNK_SIZE 13 #define HTTPCLIENT_CHUNK_SIZE (2048) // 1024 14 #endif 15 16 #ifndef HTTPCLIENT_SEND_BUF_SIZE 17 #define HTTPCLIENT_SEND_BUF_SIZE 2048 //512 18 #endif 19 20 #ifndef HTTPCLIENT_MAX_HOST_LEN 21 #define HTTPCLIENT_MAX_HOST_LEN 128 22 #endif 23 24 #ifndef HTTPCLIENT_MAX_URL_LEN 25 #define HTTPCLIENT_MAX_URL_LEN 1024 // 512 26 #endif 27 28 #ifndef HTTPCLIENT_MAX_RECV_WAIT_MS 29 #define HTTPCLIENT_MAX_RECV_WAIT_MS 5000 30 #endif 31 32 #ifndef HTTP_PORT 33 #define HTTP_PORT 80 34 #endif 35 36 #ifndef HTTPS_PORT 37 #define HTTPS_PORT 443 38 #endif 39 40 #endif /* HTTP_OPTS_H */ 41