#include <HTTPMessage.h>
Definition at line 16 of file HTTPMessage.h.
◆ cNameValueMap
◆ eKind
Enumerator |
---|
mkRequest | |
mkResponse | |
Definition at line 25 of file HTTPMessage.h.
◆ eStatus
Enumerator |
---|
HTTP_OK | |
HTTP_BAD_REQUEST | |
Definition at line 19 of file HTTPMessage.h.
◆ cHTTPMessage()
cHTTPMessage::cHTTPMessage |
( |
eKind |
a_Kind | ) |
|
◆ ~cHTTPMessage()
virtual cHTTPMessage::~cHTTPMessage |
( |
| ) |
|
|
inlinevirtual |
◆ AddHeader()
void cHTTPMessage::AddHeader |
( |
const AString & |
a_Key, |
|
|
const AString & |
a_Value |
|
) |
| |
|
virtual |
Adds a header into the internal map of headers.
Recognizes special headers: Content-Type and Content-Length
Reimplemented in cHTTPIncomingRequest.
Definition at line 36 of file HTTPMessage.cpp.
◆ GetContentLength()
size_t cHTTPMessage::GetContentLength |
( |
void |
| ) |
const |
|
inline |
◆ GetContentType()
const AString& cHTTPMessage::GetContentType |
( |
void |
| ) |
const |
|
inline |
◆ SetContentLength()
void cHTTPMessage::SetContentLength |
( |
size_t |
a_ContentLength | ) |
|
|
inline |
◆ SetContentType()
void cHTTPMessage::SetContentType |
( |
const AString & |
a_ContentType | ) |
|
|
inline |
◆ m_ContentLength
size_t cHTTPMessage::m_ContentLength |
|
protected |
◆ m_ContentType
AString cHTTPMessage::m_ContentType |
|
protected |
◆ m_Headers
Map of headers, with their keys lowercased.
Definition at line 53 of file HTTPMessage.h.
◆ m_Kind
eKind cHTTPMessage::m_Kind |
|
protected |
The documentation for this class was generated from the following files: