Abstract base class for all simple HTTP response headers. More...
#include <cgicc/HTTPHeader.h>
Public Member Functions | |
Constructors and Destructor | |
| HTTPHeader (const std::string &data) | |
| Constructor. More... | |
| HTTPHeader (const HTTPHeader &header) | |
| Copy constructor. More... | |
| virtual | ~HTTPHeader () |
| Destructor. More... | |
Cookie Management | |
| HTTPHeader & | setCookie (const HTTPCookie &cookie) |
| Set a cookie to go out with this HTTPResponseHeader. More... | |
| const std::vector< HTTPCookie > & | getCookies () const |
| Get a list of all cookies associated with this header. More... | |
Accessor Method | |
| std::string | getData () const |
Public Member Functions inherited from cgicc::MStreamable | |
| MStreamable () | |
| Empty constructor. More... | |
| virtual | ~MStreamable () |
| Empty destructor. More... | |
Subclass Methods | |
| virtual void | render (std::ostream &out) const =0 |
| Write this HTTPHeader to a stream. More... | |
Abstract base class for all simple HTTP response headers.
Definition at line 52 of file HTTPHeader.h.
| cgicc::HTTPHeader::HTTPHeader | ( | const std::string & | data | ) |
Constructor.
| data | The header data. |
| cgicc::HTTPHeader::HTTPHeader | ( | const HTTPHeader & | header | ) |
Copy constructor.
| header | The HTTPHeader to copy. |
|
virtual |
Destructor.
|
inline |
Get a list of all cookies associated with this header.
Definition at line 96 of file HTTPHeader.h.
|
inline |
Get the data contained in this HTTP header.
Definition at line 110 of file HTTPHeader.h.
|
pure virtual |
Write this HTTPHeader to a stream.
Subclasses must implement this function.
| out | The ostream to which to write. |
Implements cgicc::MStreamable.
Implemented in cgicc::HTTPRedirectHeader, cgicc::HTTPStatusHeader, and cgicc::HTTPContentHeader.
|
inline |
Set a cookie to go out with this HTTPResponseHeader.
| cookie | The HTTPCookie to set |
Definition at line 88 of file HTTPHeader.h.
Referenced by main().