List of all members
cgicc::HTTPContentHeader Class Reference

HTTP header for data of a specified MIME type. More...

#include <cgicc/HTTPContentHeader.h>

Inheritance diagram for cgicc::HTTPContentHeader:
cgicc::HTTPHeader cgicc::MStreamable cgicc::HTTPHTMLHeader cgicc::HTTPPlainHeader cgicc::HTTPXHTMLHeader

Public Member Functions

Constructor and Destructor
 HTTPContentHeader (const std::string &mimeType)
 Create a new MIME type header. More...
 
virtual ~HTTPContentHeader ()
 Destructor.
 
- Public Member Functions inherited from cgicc::HTTPHeader
 HTTPHeader (const std::string &data)
 Constructor. More...
 
 HTTPHeader (const HTTPHeader &header)
 Copy constructor. More...
 
virtual ~HTTPHeader ()
 Destructor.
 
HTTPHeadersetCookie (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...
 
std::string getData () const
 
- Public Member Functions inherited from cgicc::MStreamable
 MStreamable ()
 Empty constructor.
 
virtual ~MStreamable ()
 Empty destructor.
 

Inherited Methods

virtual void render (std::ostream &out) const
 Write this HTTPHeader to a stream.
More...
 

Detailed Description

HTTP header for data of a specified MIME type.

Definition at line 49 of file HTTPContentHeader.h.

Constructor & Destructor Documentation

◆ HTTPContentHeader()

cgicc::HTTPContentHeader::HTTPContentHeader ( const std::string &  mimeType)

Create a new MIME type header.

Parameters
mimeTypeThe MIME type of the data which will be sent.

Member Function Documentation

◆ render()

virtual void cgicc::HTTPContentHeader::render ( std::ostream &  out) const
virtual

Write this HTTPHeader to a stream.

Subclasses must implement this function.

Parameters
outThe ostream to which to write.

Implements cgicc::HTTPHeader.


The documentation for this class was generated from the following file:

GNU cgicc - A C++ class library for writing CGI applications
Copyright © 1996 - 2004 Stephen F. Booth
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front Cover Texts, and with no Back-Cover Texts.
Documentation generated Tue Sep 18 2018 00:00:00 for cgicc by doxygen 1.9.1