cgicc: cgicc::HTTPRedirectHeader Class Reference

# cgicc::HTTPRedirectHeader Class Reference

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

`#include <cgicc/HTTPRedirectHeader.h>`

Inheritance diagram for cgicc::HTTPRedirectHeader:

List of all members.

## 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.
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

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

Create a new redirection header.

Parameters:

  | url | The redirection URL.

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

Create a new redirection header with redirect status.

Parameters:

  | url | The redirection URL.
  | permanent | The status permanent or temporary

## Member Function Documentation

virtual void cgicc::HTTPRedirectHeader::render | ( | std::ostream & | out | ) | const`[virtual]`

Write this HTTPHeader to a stream.

Subclasses must implement this function.

Parameters:

  | out | The ostream to which to write.

Implements cgicc::HTTPHeader.

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

- HTTPRedirectHeader.h