WPILibC++ 2023.4.3
|
#include <stddef.h>
#include <stdint.h>
Go to the source code of this file.
Classes | |
struct | wpi::http_parser |
struct | wpi::http_parser_settings |
struct | wpi::http_parser_url |
Namespaces | |
namespace | wpi |
/file This file defines the SmallVector class. | |
Macros | |
#define | HTTP_PARSER_VERSION_MAJOR 2 |
#define | HTTP_PARSER_VERSION_MINOR 8 |
#define | HTTP_PARSER_VERSION_PATCH 1 |
#define | HTTP_PARSER_STRICT 1 |
#define | HTTP_MAX_HEADER_SIZE (80*1024) |
#define | HTTP_STATUS_MAP(XX) |
#define | XX(num, name, string) HTTP_STATUS_##name = num, |
#define | HTTP_METHOD_MAP(XX) |
#define | XX(num, name, string) HTTP_##name = num, |
#define | HTTP_ERRNO_MAP(XX) |
#define | HTTP_ERRNO_GEN(n, s) HPE_##n, |
#define | HTTP_PARSER_ERRNO(p) ((::wpi::http_errno) (p)->http_errno) |
Typedefs | |
typedef int(* | wpi::http_data_cb) (http_parser *, const char *at, size_t length) |
typedef int(* | wpi::http_cb) (http_parser *) |
Enumerations | |
enum | wpi::http_status |
enum | wpi::http_method |
enum | wpi::http_parser_type { wpi::HTTP_REQUEST , wpi::HTTP_RESPONSE , wpi::HTTP_BOTH } |
enum | wpi::flags { wpi::F_CHUNKED = 1 << 0 , wpi::F_CONNECTION_KEEP_ALIVE = 1 << 1 , wpi::F_CONNECTION_CLOSE = 1 << 2 , wpi::F_CONNECTION_UPGRADE = 1 << 3 , wpi::F_TRAILING = 1 << 4 , wpi::F_UPGRADE = 1 << 5 , wpi::F_SKIPBODY = 1 << 6 , wpi::F_CONTENTLENGTH = 1 << 7 } |
enum | wpi::http_errno |
enum | wpi::http_parser_url_fields { wpi::UF_SCHEMA = 0 , wpi::UF_HOST = 1 , wpi::UF_PORT = 2 , wpi::UF_PATH = 3 , wpi::UF_QUERY = 4 , wpi::UF_FRAGMENT = 5 , wpi::UF_USERINFO = 6 , wpi::UF_MAX = 7 } |
Functions | |
unsigned long | wpi::http_parser_version (void) |
void | wpi::http_parser_init (http_parser *parser, enum http_parser_type type) |
void | wpi::http_parser_settings_init (http_parser_settings *settings) |
size_t | wpi::http_parser_execute (http_parser *parser, const http_parser_settings *settings, const char *data, size_t len) |
int | wpi::http_should_keep_alive (const http_parser *parser) |
const char * | wpi::http_method_str (enum http_method m) |
const char * | wpi::http_status_str (enum http_status s) |
const char * | wpi::http_errno_name (enum http_errno err) |
const char * | wpi::http_errno_description (enum http_errno err) |
void | wpi::http_parser_url_init (struct http_parser_url *u) |
int | wpi::http_parser_parse_url (const char *buf, size_t buflen, int is_connect, struct http_parser_url *u) |
void | wpi::http_parser_pause (http_parser *parser, int paused) |
int | wpi::http_body_is_final (const http_parser *parser) |
#define HTTP_ERRNO_GEN | ( | n, | |
s | |||
) | HPE_##n, |
#define HTTP_ERRNO_MAP | ( | XX | ) |
#define HTTP_MAX_HEADER_SIZE (80*1024) |
#define HTTP_METHOD_MAP | ( | XX | ) |
#define HTTP_PARSER_ERRNO | ( | p | ) | ((::wpi::http_errno) (p)->http_errno) |
#define HTTP_PARSER_STRICT 1 |
#define HTTP_PARSER_VERSION_MAJOR 2 |
#define HTTP_PARSER_VERSION_MINOR 8 |
#define HTTP_PARSER_VERSION_PATCH 1 |
#define HTTP_STATUS_MAP | ( | XX | ) |
#define XX | ( | num, | |
name, | |||
string | |||
) | HTTP_STATUS_##name = num, |
#define XX | ( | num, | |
name, | |||
string | |||
) | HTTP_##name = num, |