http  1.12.11devel
Macros | Enumerations | Functions | Variables
Http_via

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_thttp_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_thttp_via_dup (su_home_t *home, http_via_t const *hdr))
 Duplicate (deep copy) http_via_t. More...
 
http_via_thttp_via_copy (su_home_t *home, http_via_t const *hdr))
 Copy a http_via_t header structure. More...
 
http_via_thttp_via_make (su_home_t *home, char const *s))
 Make a header structure http_via_t. More...
 
http_via_thttp_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.
 

Detailed Description

Macro Definition Documentation

◆ HTTP_VIA_INIT

#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 HTTP_VIA_INIT()
Initializer for structure http_via_t.
Definition: http_protos.h:10092
Via.
Definition: http.h:282

◆ HTTPTAG_VIA

#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.

Parameters
xpointer to a http_via_t header structure, or NULL.

◆ HTTPTAG_VIA_STR

#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.

Parameters
spointer 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().

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
http_via_hash 

Hash of Via header.

Function Documentation

◆ http_is_via()

int http_is_via ( http_header_t const *  header)
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.

Parameters
headerpointer to the header structure to be tested
Returns
The function http_is_xvia() returns true (nonzero) if the header object is an instance of header via and false (zero) otherwise.

◆ http_via_copy()

http_via_t * http_via_copy ( su_home_t home,
http_via_t const *  hdr 
)