#include "WString.h"
#include <Data/WebConstants.h>
#include "../Url.h"
#include "Data/Stream/ReadWriteStream.h"
#include "Data/ObjectMap.h"
#include "http-parser/http_parser.h"
Go to the source code of this file.
|
#define | ENABLE_HTTP_REQUEST_AUTH 1 |
|
#define | HTTP_MAX_HEADER_SIZE (8 * 1024) |
|
#define | HTTP_REQUEST_POOL_SIZE 20 |
|
#define | XX(num, name, string) name = num, |
|
#define | XX(num, name, string) constexpr HttpMethod HTTP_##name = HttpMethod::name; |
|
#define | XX(num, name, string) name = num, |
|
#define | XX(num, name, string) constexpr HttpStatus HTTP_STATUS_##name = HttpStatus::name; |
|
#define | XX(n, s) n, |
|
#define | XX(n, s) constexpr HttpError HPE_##n = HttpError::n; |
|
#define | HTTP_PARSER_ERRNO(p) HttpError((p)->http_errno) |
|
◆ ENABLE_HTTP_REQUEST_AUTH
#define ENABLE_HTTP_REQUEST_AUTH 1 |
◆ HTTP_MAX_HEADER_SIZE
#define HTTP_MAX_HEADER_SIZE (8 * 1024) |
◆ HTTP_PARSER_ERRNO
#define HTTP_PARSER_ERRNO |
( |
|
p | ) |
HttpError((p)->http_errno) |
◆ HTTP_REQUEST_POOL_SIZE
#define HTTP_REQUEST_POOL_SIZE 20 |
◆ XX [1/6]
◆ XX [2/6]
#define XX |
( |
|
n, |
|
|
|
s |
|
) |
| constexpr HttpError HPE_##n = HttpError::n; |
◆ XX [3/6]
#define XX |
( |
|
num, |
|
|
|
name, |
|
|
|
string |
|
) |
| name = num, |
◆ XX [4/6]
#define XX |
( |
|
num, |
|
|
|
name, |
|
|
|
string |
|
) |
| constexpr HttpMethod HTTP_##name = HttpMethod::name; |
◆ XX [5/6]
#define XX |
( |
|
num, |
|
|
|
name, |
|
|
|
string |
|
) |
| name = num, |
◆ XX [6/6]
#define XX |
( |
|
num, |
|
|
|
name, |
|
|
|
string |
|
) |
| constexpr HttpStatus HTTP_STATUS_##name = HttpStatus::name; |
◆ HttpFiles
◆ HttpConnectionState
Identifies current state for an HTTP connection.
Enumerator |
---|
eHCS_Ready | |
eHCS_StartSending | |
eHCS_SendingHeaders | |
eHCS_StartBody | |
eHCS_SendingBody | |
eHCS_Sent | |
eHCS_WaitResponse | |
◆ HttpError
◆ HttpMethod
Strongly-typed enum which shadows http_method from http_parser library.
{
◆ HttpStatus
◆ httpGetErrorDescription()
Return a descriptive string for the given error.
◆ httpGetStatusText()
Return a descriptive string for an HTTP status code.
◆ toString() [1/3]
Return a descriptive string for the given error.
◆ toString() [2/3]
Return text for an HTTP method.
◆ toString() [3/3]
Return a descriptive string for an HTTP status code.