61 #define HTTP_HEADER_INIT(h, http_class, size) \
62 ((void)memset((h), 0, (size)), \
63 (void)(((msg_common_t *)(h))->h_class = (http_class)), \
66 #define HTTP_METHOD_NAME(method, name) \
67 ((method) == http_method_unknown ? (name) : http_method_name(method, name))
91 #define HTTP_VERSION_CURRENT http_version_1_1
115 char const *fmt, ...);
126 int status,
char const *phrase,
145 void const *data, usize_t len);
150 char const *fmt, ...);
158 char const *version);
164 char const *version);
233 if (compact && h->sh_class->hc_short[0])
234 return h->sh_class->hc_short;
236 return h->sh_class->hc_name;
243 return h && h != HTTP_NONE ? h->sh_class->hc_size + (
char *)h : NULL;
261 return msg_separator_create(home);
267 #ifndef HTTP_PROTOS_H