The http module contains interface to the HTTP parser and the header and message objects.
Each HTTP header has a structure defined for it in <sofia-sip/http.h>. All the variables, objects and functions related to a particular HTTP header are documented in a submodule for the header. In addition to the header structure, there is defined a header class structure and some standard functions for each header in the <sofia-sip/http_header.h> include file. For header X
, there are types, functions, macros and header class as follows:
http_X_t
is the structure used to store parsed header,HTTP_X_INIT()
initializes a static instance of http_X_t,http_X_p()
tests if header object is instance of header X,http_X_make()
is a macro that creates a header X object by decoding given string,http_X_dup()
duplicates (deeply copies) the header X (macro),http_X_copy()
is a macro that copies the header X (macro),msg_hclass_t
http_X_class[] contains the header class for header X.In addition to this interface, the parser provider interface is documented in the SIP Parser module. The parser provider interface makes it possible to extend HTTP parser with new headers or extend existing ones.