$darkmode
cloe::handler::Redirect Class Reference

#include <handler.hpp>

Public Member Functions

 Redirect (const std::string &location)
 
void operator() (const cloe::Request &, cloe::Response &r)
 

Detailed Description

The Redirect handler redirects to the location it is created with.

Note: This is not a permanent redirect, it approximately sends the following response:

302 Found
Location /your/location/here

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