1 #ifndef SRC_HTTPSSERVERCONSTANTS_HPP_ 2 #define SRC_HTTPSSERVERCONSTANTS_HPP_ 11 #ifndef HTTPS_LOGLEVEL 12 #define HTTPS_LOGLEVEL 3 15 #ifdef HTTPS_LOGTIMESTAMP 16 #define HTTPS_LOGTAG(LVL) Serial.printf("[HTTPS:" LVL ":%10lu] ", millis()) 18 #define HTTPS_LOGTAG(LVL) Serial.print("[HTTPS:" LVL "] ") 21 #if HTTPS_LOGLEVEL > 0 22 #define HTTPS_LOGE(...) HTTPS_LOGTAG("E");Serial.printf(__VA_ARGS__);Serial.println() 24 #define HTTPS_LOGE(...) do {} while (0) 27 #if HTTPS_LOGLEVEL > 1 28 #define HTTPS_LOGW(...) HTTPS_LOGTAG("W");Serial.printf(__VA_ARGS__);Serial.println() 30 #define HTTPS_LOGW(...) do {} while (0) 33 #if HTTPS_LOGLEVEL > 2 34 #define HTTPS_LOGI(...) HTTPS_LOGTAG("I");Serial.printf(__VA_ARGS__);Serial.println() 36 #define HTTPS_LOGI(...) do {} while (0) 39 #if HTTPS_LOGLEVEL > 3 40 #define HTTPS_LOGD(...) HTTPS_LOGTAG("D");Serial.printf(__VA_ARGS__);Serial.println() 42 #define HTTPS_LOGD(...) do {} while (0) 48 #ifndef HTTPS_REQUEST_MAX_HEADERS 49 #define HTTPS_REQUEST_MAX_HEADERS 20 53 #ifndef HTTPS_REQUEST_MAX_REQUEST_LENGTH 54 #define HTTPS_REQUEST_MAX_REQUEST_LENGTH 128 58 #ifndef HTTPS_REQUEST_MAX_HEADER_LENGTH 59 #define HTTPS_REQUEST_MAX_HEADER_LENGTH 384 63 #ifndef HTTPS_CONNECTION_DATA_CHUNK_SIZE 64 #define HTTPS_CONNECTION_DATA_CHUNK_SIZE 512 69 #ifndef HTTPS_KEEPALIVE_CACHESIZE 70 #define HTTPS_KEEPALIVE_CACHESIZE 1400 74 #ifndef HTTPS_CONNECTION_TIMEOUT 75 #define HTTPS_CONNECTION_TIMEOUT 20000 80 #ifndef HTTPS_SHUTDOWN_TIMEOUT 81 #define HTTPS_SHUTDOWN_TIMEOUT 5000 85 #ifndef HTTPS_SHA1_LENGTH 86 #define HTTPS_SHA1_LENGTH 20
- src
- HTTPSServerConstants.hpp