Loading...
Searching...
No Matches
Sofia SIP User Agent Library - "http" - HTTP Parser Module

# Module Meta Information

The http module contains interface to the HTTP parser and the header and message objects.

Contact:\n Pekka Pessi <Pekka.Pessi@nokia-email.address.hidden>

Status:\n Sofia SIP Core library

License:\n LGPL

# Overview

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.

Sofia-SIP 1.12.11devel - Copyright (C) 2006 Nokia Corporation. All rights reserved. Licensed under the terms of the GNU Lesser General Public License.