#include <HTTP_Header.h>
◆ Header() [1/2]
ACE::HTTP::Header::Header |
( |
| ) |
|
◆ Header() [2/2]
ACE::HTTP::Header::Header |
( |
const ACE_CString & | version | ) |
|
◆ ~Header()
ACE::HTTP::Header::~Header |
( |
| ) |
|
|
virtual |
◆ get_version()
const ACE_CString & ACE::HTTP::Header::get_version |
( |
| ) |
const |
|
inline |
Returns the HTTP version.
◆ has_chunked_transfer_encoding()
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.
◆ has_keep_alive()
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.
◆ set_chunked_transfer_encoding()
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.
◆ set_keep_alive()
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.
◆ set_version()
void ACE::HTTP::Header::set_version |
( |
const ACE_CString & | version | ) |
|
|
inline |
Sets the HTTP version to use.
◆ CHUNKED_TRANSFER_ENCODING
const ACE_CString ACE::HTTP::Header::CHUNKED_TRANSFER_ENCODING = "chunked" |
|
static |
◆ CONNECTION
const ACE_CString ACE::HTTP::Header::CONNECTION = "Connection" |
|
static |
◆ CONNECTION_CLOSE
const ACE_CString ACE::HTTP::Header::CONNECTION_CLOSE = "Close" |
|
static |
◆ CONNECTION_KEEP_ALIVE
const ACE_CString ACE::HTTP::Header::CONNECTION_KEEP_ALIVE = "Keep-Alive" |
|
static |
◆ HTTP_1_0
const ACE_CString ACE::HTTP::Header::HTTP_1_0 = "HTTP/1.0" |
|
static |
◆ HTTP_1_1
const ACE_CString ACE::HTTP::Header::HTTP_1_1 = "HTTP/1.1" |
|
static |
◆ TRANSFER_ENCODING
const ACE_CString ACE::HTTP::Header::TRANSFER_ENCODING = "Transfer-Encoding" |
|
static |
◆ version_
The documentation for this class was generated from the following files: