15 #define ENABLE_HTTP_REQUEST_AUTH 1 23 #ifndef HTTP_MAX_HEADER_SIZE 24 #define HTTP_MAX_HEADER_SIZE (8 * 1024) 28 #ifndef HTTP_REQUEST_POOL_SIZE 29 #define HTTP_REQUEST_POOL_SIZE 20 32 #include "http-parser/http_parser.h" 43 #define XX(num, name, string) name = num, 48 #define XX(num, name, string) constexpr HttpMethod HTTP_##name = HttpMethod::name; 56 #define XX(num, name, string) name = num, 61 #define XX(num, name, string) constexpr HttpStatus HTTP_STATUS_##name = HttpStatus::name; 74 #define XX(n, s) constexpr HttpError HPE_##n = HttpError::n; 79 #define HTTP_PARSER_ERRNO(p) HttpError((p)->http_errno) 124 return http_method_str(http_method(method));
Definition: HttpCommon.h:91
The String class.
Definition: WString.h:136
Definition: HttpCommon.h:90
Definition: HttpCommon.h:85
String httpGetErrorDescription(HttpError err)
Return a descriptive string for the given error.
HttpError
HTTP error codes.
Definition: HttpCommon.h:68
Definition: HttpCommon.h:89
String httpGetStatusText(unsigned code)
Return a descriptive string for an HTTP status code.
Definition: HttpCommon.h:114
HttpMethod
Strongly-typed enum which shadows http_method from http_parser library.
Definition: HttpCommon.h:42
Definition: HttpCommon.h:88
String toString(HttpError err)
Return a descriptive string for the given error.
Definition: HttpCommon.h:87
HttpStatus
HTTP status code.
Definition: HttpCommon.h:55
HttpConnectionState
Identifies current state for an HTTP connection.
Definition: HttpCommon.h:84
Definition: HttpCommon.h:86