http_extra.c File Reference


Detailed Description

Extra HTTP headers.

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 <limits.h>
#include <assert.h>
#include "sofia-sip/http_parser.h"
#include <sofia-sip/msg_date.h>

Include dependency graph for http_extra.c:


Functions

void http_cookie_update (http_cookie_t *c)
 Update Cookie parameters.
issize_t http_cookie_d (su_home_t *home, msg_header_t *h, char *s, isize_t slen)
 Decode (parse) a Cookie header.
issize_t http_cookie_e (char b[], isize_t bsiz, msg_header_t const *h, int flags)
 Encode (print) a Cookie header.
isize_t http_cookie_dup_xtra (msg_header_t const *h, isize_t offset)
 Calculate extra storage used by Cookie header field.
char * http_cookie_dup_one (msg_header_t *dst, msg_header_t const *src, char *b, isize_t xtra)
 Duplicate a Cookie header field.
void http_set_cookie_update (http_set_cookie_t *sc)
 Update Set-Cookie parameters.
issize_t http_set_cookie_d (su_home_t *home, msg_header_t *h, char *s, isize_t slen)
 Decode (parse) Set-Cookie header.
issize_t http_set_cookie_e (char b[], isize_t bsiz, msg_header_t const *h, int flags)
 Encode (print) Set-Cookie header.
isize_t http_set_cookie_dup_xtra (msg_header_t const *h, isize_t offset)
 Calculate extra storage used by Set-Cookie header field.
char * http_set_cookie_dup_one (msg_header_t *dst, msg_header_t const *src, char *b, isize_t xtra)
 Duplicate a Set-Cookie header field.

Variables

msg_hclass_t http_proxy_connection_class []
 Header class for HTTP Proxy-Connection header.
msg_hclass_t http_cookie_class []
 Header class for HTTP Cookie header.
msg_hclass_t http_set_cookie_class []
 Header class for HTTP Set-Cookie header.

Function Documentation

void http_cookie_update ( http_cookie_t c  )  [inline]

Update Cookie parameters.

The function http_cookie_update() updates a Cookie parameter shortcuts.

Parameters:
sc pointer to a http_cookie_t object

void http_set_cookie_update ( http_set_cookie_t sc  )  [inline]

Update Set-Cookie parameters.

The function http_set_cookie_update() updates a Set-Cookie parameter shortcuts.

Parameters:
sc pointer to a http_set_cookie_t object


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