#include <stddef.h>
#include <stdint.h>
gehe zum Quellcode dieser Datei
|
enum | http_status |
|
enum | http_method |
|
enum | http_parser_type { HTTP_REQUEST
, HTTP_RESPONSE
, HTTP_BOTH
} |
|
enum | flags {
F_CHUNKED = 1 << 0
, F_CONNECTION_KEEP_ALIVE = 1 << 1
, F_CONNECTION_CLOSE = 1 << 2
, F_CONNECTION_UPGRADE = 1 << 3
,
F_TRAILING = 1 << 4
, F_UPGRADE = 1 << 5
, F_SKIPBODY = 1 << 6
, F_CONTENTLENGTH = 1 << 7
} |
|
enum | http_errno |
|
enum | http_parser_url_fields {
UF_SCHEMA = 0
, UF_HOST = 1
, UF_PORT = 2
, UF_PATH = 3
,
UF_QUERY = 4
, UF_FRAGMENT = 5
, UF_USERINFO = 6
, UF_MAX = 7
} |
|
◆ HTTP_ERRNO_GEN
#define HTTP_ERRNO_GEN |
( |
|
n, |
|
|
|
s |
|
) |
| HPE_##n, |
◆ HTTP_ERRNO_MAP
#define HTTP_ERRNO_MAP |
( |
|
XX | ) |
|
◆ HTTP_MAX_HEADER_SIZE
#define HTTP_MAX_HEADER_SIZE (80*1024) |
◆ HTTP_METHOD_MAP
#define HTTP_METHOD_MAP |
( |
|
XX | ) |
|
◆ HTTP_PARSER_ERRNO
◆ HTTP_PARSER_STRICT
#define HTTP_PARSER_STRICT 1 |
◆ HTTP_PARSER_VERSION_MAJOR
#define HTTP_PARSER_VERSION_MAJOR 2 |
◆ HTTP_PARSER_VERSION_MINOR
#define HTTP_PARSER_VERSION_MINOR 9 |
◆ HTTP_PARSER_VERSION_PATCH
#define HTTP_PARSER_VERSION_PATCH 2 |
◆ HTTP_STATUS_MAP
#define HTTP_STATUS_MAP |
( |
|
XX | ) |
|
◆ XX [1/2]
#define XX |
( |
|
num, |
|
|
|
name, |
|
|
|
string |
|
) |
| HTTP_STATUS_##name = num, |
◆ XX [2/2]
#define XX |
( |
|
num, |
|
|
|
name, |
|
|
|
string |
|
) |
| HTTP_##name = num, |
◆ http_cb
◆ http_data_cb
typedef int(* http_data_cb) (http_parser *, const char *at, size_t length) |
◆ http_parser
◆ http_parser_settings
◆ flags
Aufzählungswerte |
---|
F_CHUNKED | |
F_CONNECTION_KEEP_ALIVE | |
F_CONNECTION_CLOSE | |
F_CONNECTION_UPGRADE | |
F_TRAILING | |
F_UPGRADE | |
F_SKIPBODY | |
F_CONTENTLENGTH | |
◆ http_errno
◆ http_method
◆ http_parser_type
Aufzählungswerte |
---|
HTTP_REQUEST | |
HTTP_RESPONSE | |
HTTP_BOTH | |
◆ http_parser_url_fields
Aufzählungswerte |
---|
UF_SCHEMA | |
UF_HOST | |
UF_PORT | |
UF_PATH | |
UF_QUERY | |
UF_FRAGMENT | |
UF_USERINFO | |
UF_MAX | |
◆ http_status
◆ http_body_is_final()
◆ http_errno_description()
const char* http_errno_description |
( |
enum http_errno |
err | ) |
|
◆ http_errno_name()
const char* http_errno_name |
( |
enum http_errno |
err | ) |
|
◆ http_method_str()
◆ http_parser_execute()
◆ http_parser_init()
◆ http_parser_parse_url()
int http_parser_parse_url |
( |
const char * |
buf, |
|
|
size_t |
buflen, |
|
|
int |
is_connect, |
|
|
struct http_parser_url * |
u |
|
) |
| |
◆ http_parser_pause()
void http_parser_pause |
( |
http_parser * |
parser, |
|
|
int |
paused |
|
) |
| |
◆ http_parser_set_max_header_size()
void http_parser_set_max_header_size |
( |
uint32_t |
size | ) |
|
◆ http_parser_settings_init()
◆ http_parser_url_init()
◆ http_parser_version()
unsigned long http_parser_version |
( |
void |
| ) |
|
◆ http_should_keep_alive()
int http_should_keep_alive |
( |
const http_parser * |
parser | ) |
|
◆ http_status_str()