Class for redirecting the client to a different URI. More...
#include <cgicc/HTTPRedirectHeader.h>
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. | |
![]() | |
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. | |
Class for redirecting the client to a different URI.
Definition at line 50 of file HTTPRedirectHeader.h.
cgicc::HTTPRedirectHeader::HTTPRedirectHeader | ( | const std::string & | url | ) |
Create a new redirection header.
url | The redirection URL. |
cgicc::HTTPRedirectHeader::HTTPRedirectHeader | ( | const std::string & | url, |
bool | permanent | ||
) |
Create a new redirection header with redirect status.
url | The redirection URL. |
permanent | The status permanent or temporary |
|
virtual |
Destructor.
|
virtual |
Write this HTTPHeader to a stream.
Subclasses must implement this function.
out | The ostream to which to write. |
Implements cgicc::HTTPHeader.