|
http
1.12.11devel
|
Macros | |
| #define | HTTP_VIA_INIT() |
| Initializer for structure http_via_t. More... | |
| #define | HTTPTAG_VIA(x) |
| Tag list item for pointer to a Via header object. More... | |
| #define | HTTPTAG_VIA_STR(s) |
| Tag list item for string with Via header value. More... | |
Enumerations | |
| enum | { http_via_hash } |
Functions | |
| http_via_t * | http_via_init (http_via_t x[1]) |
| Initialize a structure http_via_t. More... | |
| int | http_is_via (http_header_t const *header) |
| Test if header object is instance of http_via_t. More... | |
| http_via_t * | http_via_dup (su_home_t *home, http_via_t const *hdr)) |
Duplicate (deep copy) http_via_t. More... | |
| http_via_t * | http_via_copy (su_home_t *home, http_via_t const *hdr)) |
| Copy a http_via_t header structure. More... | |
| http_via_t * | http_via_make (su_home_t *home, char const *s)) |
| Make a header structure http_via_t. More... | |
| http_via_t * | http_via_format (su_home_t *home, char const *fmt,...))) |
| Make a Via header from formatting result. More... | |
Variables | |
| msg_hclass_t | http_via_class [] |
| Header class for HTTP Via header. More... | |
| msg_parse_f | http_via_d |
| Decode (parse) a Via header. | |
| msg_print_f | http_via_e |
| Encode (print) a Via header. | |
| #define HTTP_VIA_INIT | ( | ) |
Initializer for structure http_via_t.
A static http_via_t structure must be initialized with the HTTP_VIA_INIT() macro. For instance,
| #define HTTPTAG_VIA | ( | x | ) |
Tag list item for pointer to a Via header object.
The HTTPTAG_VIA() macro is used to include a tag item with a pointer to a http_via_t object in a tag list.
| x | pointer to a http_via_t header structure, or NULL. |
| #define HTTPTAG_VIA_STR | ( | s | ) |
Tag list item for string with Via header value.
The HTTPTAG_VIA_STR() macro is used to include a tag item with a string containing value of a http_via_t header in a tag list.
| s | pointer to a string containing http_via_t value, or NULL. |
The HTTPTAG_VIA_STR string can be converted to a http_via_t header structure by giving the string s has second argument to function http_via_make().
|
inline |
Test if header object is instance of http_via_t.
The function http_is_via() returns true (nonzero) if the header class is an instance of Via header object and false (zero) otherwise.
| header | pointer to the header structure to be tested |
|