62#define HTTP_HCLASS_TAG HTTP_PROTOCOL_TAG
63#define HTTP_HCLASS_TEST(x) ((x) && (x)->hc_tag == HTTP_PROTOCOL_TAG)
64#define HTTP_HDR_TEST(x) ((x)->sh_class && HTTP_HCLASS_TEST((x)->sh_class))
67#define HTTP_HEADER_CLASS(c, l, params, kind, dup) \
68 MSG_HEADER_CLASS(http_, c, l, "", params, kind, http_ ## dup, http_no)
71#define HTTP_HEADER_CLASS_G(c, l, kind) \
72 MSG_HEADER_CLASS(http_, c, l, "", g_common, kind, msg_generic, http_no)
75#define HTTP_HEADER_CLASS_LIST(c, l, kind) \
76 MSG_HEADER_CLASS(http_, c, l, "", k_items, kind, msg_list, http_no)
79#define HTTP_HEADER_CLASS_AUTH(c, l, kind) \
80 MSG_HEADER_CLASS(http_, c, l, "", au_params, kind, msg_auth, http_no)
82#define http_numeric_dup_xtra msg_default_dup_xtra
83#define http_numeric_dup_one msg_default_dup_one
85#define http_default_dup_xtra msg_default_dup_xtra
86#define http_default_dup_one msg_default_dup_one
88#define http_no_update NULL
106 char b[], isize_t bsiz,
int eos);
HTTP message, methods, headers.
http_method_t
IDs for well-known HTTP methods.
Definition http.h:69
char const * http_method_name(http_method_t method, char const *name)
Return string corresponding to the method.
Definition http_parser.c:416
void http_version_dup(char **pp, char const **dd, char const *s)
Duplicate a transport string.
Definition http_parser.c:382
int http_version_d(char **ss, char const **ver)
Parse HTTP version.
Definition http_parser.c:307
issize_t http_extract_body(msg_t *, http_t *, char b[], isize_t bsiz, int eos)
Extract HTTP message body.
Definition http_parser.c:84
isize_t http_version_xtra(char const *version)
Calculate extra space required by version string.
Definition http_parser.c:371
http_method_t http_method_d(char **ss, char const **nname)
Parse a HTTP method name.
Definition http_parser.c:447
HTTP message object.
Definition http.h:323