HTTP header for data of a specified MIME type. More...
#include <cgicc/HTTPContentHeader.h>
Public Member Functions | |
Constructor and Destructor | |
HTTPContentHeader (const std::string &mimeType) | |
Create a new MIME type header. | |
virtual | ~HTTPContentHeader () |
Destructor. | |
![]() | |
HTTPHeader (const std::string &data) | |
Constructor. | |
HTTPHeader (const HTTPHeader &header) | |
Copy constructor. | |
virtual | ~HTTPHeader () |
Destructor. | |
HTTPHeader & | setCookie (const HTTPCookie &cookie) |
Set a cookie to go out with this HTTPResponseHeader. | |
const std::vector< HTTPCookie > & | getCookies () const |
Get a list of all cookies associated with this header. | |
std::string | getData () const |
![]() | |
MStreamable () | |
Empty constructor. | |
virtual | ~MStreamable () |
Empty destructor. | |
virtual void | render (std::ostream &out) const =0 |
Write this object to a stream. | |
Inherited Methods | |
virtual void | render (std::ostream &out) const |
Write this HTTPHeader to a stream. | |
HTTP header for data of a specified MIME type.
Definition at line 49 of file HTTPContentHeader.h.
cgicc::HTTPContentHeader::HTTPContentHeader | ( | const std::string & | mimeType | ) |
Create a new MIME type header.
mimeType | The MIME type of the data which will be sent. |
|
virtual |
Destructor.
|
virtual |
Write this HTTPHeader to a stream.
Subclasses must implement this function.
out | The ostream to which to write. |
Implements cgicc::HTTPHeader.