http_header.c File Reference


Detailed Description

HTTP header handling.

Author:
Pekka Pessi <Pekka.Pessi@nokia-email.address.hidden>
Date:
Created: Tue Jun 13 02:57:51 2000 ppessi

#include "config.h"
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <limits.h>
#include <stdarg.h>
#include <assert.h>
#include <sofia-sip/su_alloc.h>
#include "sofia-sip/http_parser.h"
#include <sofia-sip/http_header.h>
#include <sofia-sip/http_status.h>

Include dependency graph for http_header.c:


Functions

int http_request_complete (msg_t *msg)
 Complete a HTTP request.
int http_strip_hostport (url_t *url)
 Remove schema, host, and port from URL.
int http_message_complete (msg_t *msg, http_t *http)
 Complete a HTTP message.
int http_complete_response (msg_t *msg, int status, char const *phrase, http_t const *request)
 Add required headers to the response message.
http_header_thttp_header_copy (su_home_t *home, http_header_t const *h)
 Copy a HTTP header.
http_header_thttp_header_dup (su_home_t *home, http_header_t const *h)
 Duplicate a HTTP header.
http_header_thttp_header_d (su_home_t *home, msg_t const *msg, char const *b)
 Decode a HTTP header.
int http_header_e (char b[], int bsiz, http_header_t const *h, int flags)
 Encode a HTTP header.
int http_header_field_e (char b[], int bsiz, http_header_t const *h, int flags)
 Encode HTTP header contents.
int http_add_dup (msg_t *msg, http_t *http, http_header_t const *o)
 Add a duplicate of header object to a HTTP message.
int http_add_make (msg_t *msg, http_t *http, msg_hclass_t *hc, char const *s)
 Add a header to the HTTP message.
int http_add_format (msg_t *msg, http_t *http, msg_hclass_t *hc, char const *fmt,...)
 Add a header to the HTTP message.
int http_url_cmp (url_t const *a, url_t const *b)
 Compare two HTTP URLs.

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