Public Member Functions | Static Public Attributes | Private Attributes

ACE::HTTP::Header Class Reference

#include <HTTP_Header.h>

Inheritance diagram for ACE::HTTP::Header:
Inheritance graph
[legend]
Collaboration diagram for ACE::HTTP::Header:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Header ()
 Constructor.
 Header (const ACE_CString &version)
 Constructor.
virtual ~Header ()
 Destructor.
void set_version (const ACE_CString &version)
 Sets the HTTP version to use.
const ACE_CStringget_version () const
 Returns the HTTP version.
void set_chunked_transfer_encoding (bool flag)
bool has_chunked_transfer_encoding () const
void set_keep_alive (bool keep_alive)
bool has_keep_alive () const

Static Public Attributes

static const ACE_CString HTTP_1_0 = "HTTP/1.0"
static const ACE_CString HTTP_1_1 = "HTTP/1.1"
static const ACE_CString CHUNKED_TRANSFER_ENCODING = "chunked"
static const ACE_CString TRANSFER_ENCODING = "Transfer-Encoding"
static const ACE_CString CONNECTION = "Connection"
static const ACE_CString CONNECTION_KEEP_ALIVE = "Keep-Alive"
static const ACE_CString CONNECTION_CLOSE = "Close"

Private Attributes

ACE_CString version_

Constructor & Destructor Documentation

ACE::HTTP::Header::Header (  ) 

Constructor.

ACE::HTTP::Header::Header ( const ACE_CString version  ) 

Constructor.

ACE::HTTP::Header::~Header (  )  [virtual]

Destructor.


Member Function Documentation

const ACE_CString & ACE::HTTP::Header::get_version (  )  const [inline]

Returns the HTTP version.

bool ACE::HTTP::Header::has_chunked_transfer_encoding (  )  const [inline]

Returns true if the Transfer-Encoding header is set and its value is CHUNKED_TRANSFER_ENCODING.

bool ACE::HTTP::Header::has_keep_alive (  )  const [inline]

Returns true if the message has a Connection header field and its value is "Keep-Alive" the message is a HTTP/1.1 message and no Connection header is set Returns false otherwise.

void ACE::HTTP::Header::set_chunked_transfer_encoding ( bool  flag  )  [inline]

If flag is true, sets the Transfer-Encoding header to CHUNKED_TRANSFER_ENCODING. Otherwise, removes the Transfer-Encoding header.

void ACE::HTTP::Header::set_keep_alive ( bool  keep_alive  )  [inline]

Sets the value of the Connection header field. The value is set to "Keep-Alive" if true specified, or to "Close" otherwise.

void ACE::HTTP::Header::set_version ( const ACE_CString version  )  [inline]

Sets the HTTP version to use.


Member Data Documentation

const ACE_CString ACE::HTTP::Header::CONNECTION = "Connection" [static]
const ACE_CString ACE::HTTP::Header::HTTP_1_0 = "HTTP/1.0" [static]
const ACE_CString ACE::HTTP::Header::HTTP_1_1 = "HTTP/1.1" [static]
const ACE_CString ACE::HTTP::Header::TRANSFER_ENCODING = "Transfer-Encoding" [static]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines