Fawkes API  Fawkes Development Version
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
fawkes::WebRedirectReply Class Reference

Redirect reply for webview. More...

#include <>>

Inheritance diagram for fawkes::WebRedirectReply:

List of all members.

Public Member Functions

 WebRedirectReply (std::string url)
 Constructor.
- Public Member Functions inherited from fawkes::StaticWebReply
 StaticWebReply (response_code_t code, std::string body="")
 Constructor.
void append_body (const char *format,...)
 Append to body.
StaticWebReplyoperator+= (std::string text)
 Append simple text line.
virtual const std::string & body ()
 Get body.
virtual std::string::size_type body_length ()
 Get length of body.
virtual void pack ()
 Pack the data.
- Public Member Functions inherited from fawkes::WebReply
 WebReply (response_code_t code)
 Constructor.
virtual ~WebReply ()
 Destructor.
response_code_t code () const
 Get response code.
void add_header (std::string header, std::string content)
 Add a HTTP header.
void add_header (std::string header_string)
 Add a HTTP header.
const HeaderMapheaders () const
 get headers.

Additional Inherited Members

- Protected Attributes inherited from fawkes::StaticWebReply
std::string _body
 Body of the reply.

Detailed Description

Redirect reply for webview.

This reply will cause an immediate redirect from the requested page to the given URL. THe URL can be local as well as remote. The redirect is done on the HTTP level with status code "moved permanently" and the new URL as "Location" HTTP header.

Author:
Tim Niemueller

Definition at line 33 of file redirect_reply.h.


Constructor & Destructor Documentation

fawkes::WebRedirectReply::WebRedirectReply ( std::string  url)

Constructor.

Parameters:
urlthe URL to redirect to

Definition at line 42 of file redirect_reply.cpp.

References fawkes::WebReply::add_header().


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