Defines | |
| #define | HTTP_PRAGMA_INIT() |
| Initializer for structure http_pragma_t. | |
| #define | HTTPTAG_PRAGMA(x) |
| Tag list item for pointer to a Pragma header object. | |
| #define | HTTPTAG_PRAGMA_STR(s) |
| Tag list item for string with Pragma header value. | |
Enumerations | |
| enum | { http_pragma_hash } |
Functions | |
| http_pragma_t * | http_pragma_init (http_pragma_t x[1]) |
| Initialize a structure http_pragma_t. | |
| int | http_is_pragma (http_header_t const *header) |
| Test if header object is instance of http_pragma_t. | |
| http_pragma_t * | http_pragma_dup (su_home_t *home, http_pragma_t const *hdr)) |
Duplicate (deep copy) http_pragma_t. | |
| http_pragma_t * | http_pragma_copy (su_home_t *home, http_pragma_t const *hdr)) |
| Copy a http_pragma_t header structure. | |
| http_pragma_t * | http_pragma_make (su_home_t *home, char const *s)) |
| Make a header structure http_pragma_t. | |
| http_pragma_t * | http_pragma_format (su_home_t *home, char const *fmt,...))) |
| Make a Pragma header from formatting result. | |
Variables | |
| msg_hclass_t | http_pragma_class [] |
| Header class for HTTP Pragma header. | |
| msg_parse_f | http_pragma_d |
| Decode (parse) a Pragma header. | |
| msg_print_f | http_pragma_e |
| Encode (print) a Pragma header. | |
| #define HTTP_PRAGMA_INIT | ( | ) |
Initializer for structure http_pragma_t.
A static http_pragma_t structure must be initialized with the HTTP_PRAGMA_INIT() macro. For instance,
http_pragma_t http_pragma = HTTP_PRAGMA_INIT;
| #define HTTPTAG_PRAGMA | ( | x | ) |
Tag list item for pointer to a Pragma header object.
The list item for pointer to a Pragma header object. http_mime_version_format() returns a pointer to newly makes header structure, or NULL upon an error.
| http_mime_version_t* http_mime_version_init | ( | http_mime_version_t | x[1] | ) | [inline] |
Initialize a structure http_mime_version_t.
An http_mime_version_t structure can be initialized with the http_mime_version_init() function/macro. For instance,
http_mime_version_t http_mime_version; http_mime_version_init(&http_mime_version);
| http_mime_version_t * http_mime_version_make | ( | su_home_t * | home, | |
| char const * | s | |||
| ) | [inline] |
Make a header structure http_mime_version_t.
The function http_mime_version_make() makes a new http_mime_version_t header structure. It allocates a new header structure, and decodes the string s as the value of the structure.
| home | memory home used to allocate new header structure. | |
| s | string to be decoded as value of the new header structure |
Header class for HTTP MIME-Version header.
The header class http_mime_version_class defines how a HTTP MIME-Version header is parsed and printed. It also contains methods used by HTTP parser and other functions to manipulate the http_mime_version_t header structure.