Data Structures | Defines | Typedefs | Enumerations

sofia-sip/http.h File Reference

HTTP message, methods, headers. More...

#include <sofia-sip/msg.h>
#include <sofia-sip/url.h>
#include <sofia-sip/msg_mime.h>
Include dependency graph for http.h:

Go to the source code of this file.

Data Structures

struct  http_request_s
 HTTP request line. More...
struct  http_status_s
 HTTP status line. More...
struct  http_authentication_info_s
 Structure for Authentication-Info header. More...
struct  http_content_range_s
 Content-Range. More...
struct  http_date_s
 Date, Expires, If-Modified-Since, If-Unmodified-Since, Last-Modified. More...
struct  http_host_s
 Host. More...
struct  http_if_range_s
 If-Range. More...
struct  http_location_s
 Location, Referer. More...
struct  http_max_forwards_s
 Max-Forwards. More...
struct  http_range_s
 Range. More...
struct  http_retry_after_s
 Retry-After. More...
struct  http_te_s
 TE. More...
struct  http_via_s
 Via. More...
struct  http_cookie_s
 Cookie. More...
struct  http_set_cookie_s
 Set-Cookie. More...
struct  http_s
 HTTP message object. More...
union  http_header_u
 Union representing any HTTP header. More...

Defines

#define HTTP_H
 Defined when <sofia-sip/http.h> has been included.
#define HTTP_PROTOCOL_TAG
 HTTP protocol identifier.

Typedefs

typedef struct http_s http_t
 HTTP message object.
typedef union http_header_u http_header_t
 Any HTTP header - union of all possible HTTP headers.
typedef struct http_content_range_s http_content_range_t
 The structure http_content_range_t contains representation of Content-Range header.
typedef struct http_date_s http_date_t
 The structure http_date_t contains representation of Date header.
typedef http_date_t http_expires_t
 The structure http_expires_t contains representation of Expires header.
typedef http_date_t http_if_modified_since_t
 The structure http_if_modified_since_t contains representation of If-Modified-Since header.
typedef http_date_t http_if_unmodified_since_t
 The structure http_if_unmodified_since_t contains representation of If-Unmodified-Since header.
typedef http_date_t http_last_modified_t
 The structure http_last_modified_t contains representation of Last-Modified header.
typedef struct http_location_s http_location_t
 The structure http_location_t contains representation of Location header.
typedef struct http_range_s http_range_t
 The structure http_range_t contains representation of Range header.
typedef struct http_location_s http_referer_t
 The structure http_referer_t contains representation of Referer header.
typedef struct http_retry_after_s http_retry_after_t
 The structure http_retry_after_t contains representation of Retry-After header.
typedef struct http_te_s http_te_t
 The structure http_te_t contains representation of TE header.
typedef struct http_set_cookie_s http_set_cookie_t
 The structure http_set_cookie_t contains representation of Set-Cookie header.
typedef struct http_cookie_s http_cookie_t
 The structure http_cookie_t contains representation of Cookie header.
typedef msg_error_t http_error_t
 Erroneous header.
typedef msg_generic_t http_unknown_t
 Unknown header.
typedef msg_separator_t http_separator_t
 Separator line between headers and message contents.
typedef msg_payload_t http_payload_t
 Entity-body.
typedef unsigned long http_time_t
 Time in seconds since 01-Jan-1900.
typedef unsigned long http_off_t
 Range offset.

Enumerations

enum  
 

HTTP parser flags.


enum  http_method_t {
  http_method_invalid,
  http_method_unknown,
  http_method_get,
  http_method_post,
  http_method_head,
  http_method_options,
  http_method_put,
  http_method_delete,
  http_method_trace,
  http_method_connect
}
 

IDs for well-known HTTP methods.

More...

Detailed Description

HTTP message, methods, headers.

See also:
RFC 2616
Author:
Pekka Pessi <Pekka.Pessi@nokia-email.address.hidden>.
Date:
Created : Thu Jun 8 19:28:55 2000 ppessi

Define Documentation

#define HTTP_H

Defined when <sofia-sip/http.h> has been included.


Typedef Documentation

Erroneous header.

Any HTTP header - union of all possible HTTP headers.

typedef unsigned long http_off_t

Range offset.

typedef struct http_s http_t

HTTP message object.

typedef unsigned long http_time_t

Time in seconds since 01-Jan-1900.

typedef msg_generic_t http_unknown_t

Unknown header.


Enumeration Type Documentation

IDs for well-known HTTP methods.

Enumerator:
http_method_invalid 

Invalid method name.

http_method_unknown 

Unknown method, use method_name.

http_method_get 

GET.

http_method_post 

POST.

http_method_head 

HEAD.

http_method_options 

OPTIONS.

http_method_put 

PUT.

http_method_delete 

DELETE.

http_method_trace 

TRACE.

http_method_connect 

CONNECT.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

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