#include <HTTP_Header.h>
Constructor & Destructor Documentation
ACE::HTTP::Header::Header |
( |
| ) |
|
ACE::HTTP::Header::Header |
( |
const ACE_CString & |
version | ) |
|
ACE::HTTP::Header::~Header |
( |
| ) |
|
|
virtual |
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::CHUNKED_TRANSFER_ENCODING = "chunked" |
|
static |
const ACE_CString ACE::HTTP::Header::CONNECTION = "Connection" |
|
static |
const ACE_CString ACE::HTTP::Header::CONNECTION_CLOSE = "Close" |
|
static |
const ACE_CString ACE::HTTP::Header::CONNECTION_KEEP_ALIVE = "Keep-Alive" |
|
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: