List of all members
cgicc::HTTPRedirectHeader Class Reference

Class for redirecting the client to a different URI. More...

#include <cgicc/HTTPRedirectHeader.h>

Inheritance diagram for cgicc::HTTPRedirectHeader:
cgicc::HTTPHeader cgicc::MStreamable

Public Member Functions

Constructor and Destructor
 HTTPRedirectHeader (const std::string &url)
 Create a new redirection header.
 
 HTTPRedirectHeader (const std::string &url, bool permanent)
 Create a new redirection header with redirect status.
 
virtual ~HTTPRedirectHeader ()
 Destructor.
 
- Public Member Functions inherited from cgicc::HTTPHeader
 HTTPHeader (const std::string &data)
 Constructor.
 
 HTTPHeader (const HTTPHeader &header)
 Copy constructor.
 
virtual ~HTTPHeader ()
 Destructor.
 
HTTPHeadersetCookie (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
 
- Public Member Functions inherited from cgicc::MStreamable
 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.

 

Detailed Description

Class for redirecting the client to a different URI.

Definition at line 50 of file HTTPRedirectHeader.h.

Constructor & Destructor Documentation

◆ HTTPRedirectHeader() [1/2]

cgicc::HTTPRedirectHeader::HTTPRedirectHeader ( const std::string &  url)

Create a new redirection header.

Parameters
urlThe redirection URL.

◆ HTTPRedirectHeader() [2/2]

cgicc::HTTPRedirectHeader::HTTPRedirectHeader ( const std::string &  url,
bool  permanent 
)

Create a new redirection header with redirect status.

Parameters
urlThe redirection URL.
permanentThe status permanent or temporary

◆ ~HTTPRedirectHeader()

virtual cgicc::HTTPRedirectHeader::~HTTPRedirectHeader ( )
virtual

Destructor.

Member Function Documentation

◆ render()

virtual void cgicc::HTTPRedirectHeader::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 Fri Mar 1 2024 08:39:43 for cgicc by doxygen 1.9.6