43 #ifndef HTTP_HCLASSES_H
47 #define http_header_make(h, c, s) \
48 ((http_header_t *)msg_header_make((h), (c), (s)))
49 #define http_header_vformat(h, c, f, a) \
50 ((http_header_t *)msg_header_vformat((h), (c), (f), (a)))
73 #ifndef HTTP_HCLASSES_ONLY
92 #define HTTP_REQUEST_INIT() HTTP_HDR_INIT(request)
113 #define http_request_init(x) \
114 HTTP_HEADER_INIT(x, http_request_class, sizeof(http_request_t))
137 #define http_is_request(h) \
138 ((h) && ((msg_common_t *)(h))->h_class->hc_hash == http_request_hash)
173 __attribute__((__malloc__));
208 __attribute__((__malloc__));
232 __attribute__((__malloc__));
260 __attribute__((__malloc__, __format__ (printf, 2, 3)));
323 #ifndef HTTP_HCLASSES_ONLY
342 #define HTTP_STATUS_INIT() HTTP_HDR_INIT(status)
363 #define http_status_init(x) \
364 HTTP_HEADER_INIT(x, http_status_class, sizeof(http_status_t))
387 #define http_is_status(h) \
388 ((h) && ((msg_common_t *)(h))->h_class->hc_hash == http_status_hash)
423 __attribute__((__malloc__));
458 __attribute__((__malloc__));
482 __attribute__((__malloc__));
510 __attribute__((__malloc__, __format__ (printf, 2, 3)));
573 #ifndef HTTP_HCLASSES_ONLY
592 #define HTTP_ACCEPT_INIT() HTTP_HDR_INIT(accept)
613 #define http_accept_init(x) \
614 HTTP_HEADER_INIT(x, http_accept_class, sizeof(http_accept_t))
637 #define http_is_accept(h) \
638 ((h) && ((msg_common_t *)(h))->h_class->hc_hash == http_accept_hash)
673 __attribute__((__malloc__));
708 __attribute__((__malloc__));
732 __attribute__((__malloc__));
760 __attribute__((__malloc__, __format__ (printf, 2, 3)));
823 #ifndef HTTP_HCLASSES_ONLY
842 #define HTTP_ACCEPT_CHARSET_INIT() HTTP_HDR_INIT(accept_charset)
863 #define http_accept_charset_init(x) \
864 HTTP_HEADER_INIT(x, http_accept_charset_class, sizeof(http_accept_charset_t))
887 #define http_is_accept_charset(h) \
888 ((h) && ((msg_common_t *)(h))->h_class->hc_hash == http_accept_charset_hash)
922 http_accept_charset_t
const *hdr)
923 __attribute__((__malloc__));
957 http_accept_charset_t
const *hdr)
958 __attribute__((__malloc__));
982 __attribute__((__malloc__));
1010 __attribute__((__malloc__, __format__ (printf, 2, 3)));
1025 return (http_accept_charset_t *)h;
1031 return (http_accept_charset_t *)
1038 return (http_accept_charset_t *)
1073 #ifndef HTTP_HCLASSES_ONLY
1092 #define HTTP_ACCEPT_ENCODING_INIT() HTTP_HDR_INIT(accept_encoding)
1113 #define http_accept_encoding_init(x) \
1114 HTTP_HEADER_INIT(x, http_accept_encoding_class, sizeof(http_accept_encoding_t))
1137 #define http_is_accept_encoding(h) \
1138 ((h) && ((msg_common_t *)(h))->h_class->hc_hash == http_accept_encoding_hash)
1172 http_accept_encoding_t
const *hdr)
1173 __attribute__((__malloc__));
1207 http_accept_encoding_t
const *hdr)
1208 __attribute__((__malloc__));
1232 __attribute__((__malloc__));
1260 __attribute__((__malloc__, __format__ (printf, 2, 3)));
1275 return (http_accept_encoding_t *)h;
1281 return (http_accept_encoding_t *)
1288 return (http_accept_encoding_t *)
1323 #ifndef HTTP_HCLASSES_ONLY
1342 #define HTTP_ACCEPT_LANGUAGE_INIT() HTTP_HDR_INIT(accept_language)
1363 #define http_accept_language_init(x) \
1364 HTTP_HEADER_INIT(x, http_accept_language_class, sizeof(http_accept_language_t))
1387 #define http_is_accept_language(h) \
1388 ((h) && ((msg_common_t *)(h))->h_class->hc_hash == http_accept_language_hash)
1422 http_accept_language_t
const *hdr)
1423 __attribute__((__malloc__));
1457 http_accept_language_t
const *hdr)
1458 __attribute__((__malloc__));
1482 __attribute__((__malloc__));
1510 __attribute__((__malloc__, __format__ (printf, 2, 3)));
1525 return (http_accept_language_t *)h;
1531 return (http_accept_language_t *)
1538 return (http_accept_language_t *)
1573 #ifndef HTTP_HCLASSES_ONLY
1592 #define HTTP_ACCEPT_RANGES_INIT() HTTP_HDR_INIT(accept_ranges)
1613 #define http_accept_ranges_init(x) \
1614 HTTP_HEADER_INIT(x, http_accept_ranges_class, sizeof(http_accept_ranges_t))
1637 #define http_is_accept_ranges(h) \
1638 ((h) && ((msg_common_t *)(h))->h_class->hc_hash == http_accept_ranges_hash)
1673 __attribute__((__malloc__));
1708 __attribute__((__malloc__));
1732 __attribute__((__malloc__));
1760 __attribute__((__malloc__, __format__ (printf, 2, 3)));
1823 #ifndef HTTP_HCLASSES_ONLY
1842 #define HTTP_ALLOW_INIT() HTTP_HDR_INIT(allow)
1863 #define http_allow_init(x) \
1864 HTTP_HEADER_INIT(x, http_allow_class, sizeof(http_allow_t))
1887 #define http_is_allow(h) \
1888 ((h) && ((msg_common_t *)(h))->h_class->hc_hash == http_allow_hash)
1923 __attribute__((__malloc__));
1958 __attribute__((__malloc__));
1982 __attribute__((__malloc__));
2010 __attribute__((__malloc__, __format__ (printf, 2, 3)));
2073 #ifndef HTTP_HCLASSES_ONLY