#include <HeaderBase.h>
|
static const int | eof_ = std::char_traits<char>::eof() |
|
Limits for reading a header.
Enumerator |
---|
MAX_NAME_LENGTH |
|
MAX_VALUE_LENGTH |
|
ACE::INet::HeaderBase::HeaderBase |
( |
| ) |
|
ACE::INet::HeaderBase::~HeaderBase |
( |
| ) |
|
|
virtual |
Adds header name with value. Allows duplicates.
void ACE::INet::HeaderBase::clear |
( |
| ) |
|
|
inline |
Retrieves value for header name into value (first found).
int ACE::INet::HeaderBase::get_content_length |
( |
| ) |
const |
|
inlinevirtual |
Returns the content length for this message. Returns UNKNOWN_CONTENT_LENGTH if no Content-Length header is present.
ACE_CString ACE::INet::HeaderBase::get_content_type |
( |
| ) |
const |
|
inlinevirtual |
Returns the content type for this message. Returns UNKNOWN_CONTENT_TYPE if no Content-Type header is present.
Retrieves values for all headers name into values.
bool ACE::INet::HeaderBase::has |
( |
const ACE_CString & |
name | ) |
const |
|
inline |
Returns true if a header name exists (1 or more), false otherwise.
bool ACE::INet::HeaderBase::read |
( |
std::istream & |
str | ) |
|
|
virtual |
int ACE::INet::HeaderBase::read_field |
( |
std::istream & |
str, |
|
|
ACE_CString & |
var, |
|
|
size_t |
maxlen, |
|
|
char |
delim |
|
) |
| |
|
inlineprotected |
int ACE::INet::HeaderBase::read_ws_field |
( |
std::istream & |
str, |
|
|
ACE_CString & |
var, |
|
|
size_t |
maxlen |
|
) |
| |
|
inlineprotected |
void ACE::INet::HeaderBase::remove |
( |
const ACE_CString & |
name | ) |
|
|
inline |
Removes header name (first found).
Sets header name to value. Overwrites existing vaues.
void ACE::INet::HeaderBase::set_content_length |
( |
int |
length | ) |
|
|
virtual |
Sets the Content-Length header. Removes the Content-Length header if length is UNKNOWN_CONTENT_LENGTH.
void ACE::INet::HeaderBase::set_content_type |
( |
const ACE_CString & |
mime_type | ) |
|
|
inlinevirtual |
Sets the content type for this message. Removes the Content-Type header if UNKNOWN_CONTENT_TYPE is specified.
void ACE::INet::HeaderBase::write |
( |
std::ostream & |
str | ) |
const |
|
virtual |
const ACE_CString ACE::INet::HeaderBase::CONTENT_LENGTH = "Content-Length" |
|
static |
const ACE_CString ACE::INet::HeaderBase::CONTENT_TYPE = "Content-Type" |
|
static |
const int ACE::INet::HeaderBase::eof_ = std::char_traits<char>::eof() |
|
staticprotected |
TNVMap ACE::INet::HeaderBase::header_values_ |
|
private |
const int ACE::INet::HeaderBase::UNKNOWN_CONTENT_LENGTH = -1 |
|
static |
const ACE_CString ACE::INet::HeaderBase::UNKNOWN_CONTENT_TYPE |
|
static |
The documentation for this class was generated from the following files: