Function setHomePage

Synopsis

#include <lib/inc/drogon/HttpAppFramework.h>

virtual HttpAppFramework & setHomePage(const std::string &homePageFile)=0

Description

If there isn't any handler registered to the path "/", the home page file in the "document_root" is send to clients as a response to the request for "/".

Note
This operation can be performed by an option in the configuration file.

Source

Line 1059 in lib/inc/drogon/HttpAppFramework.h.






Add Discussion as Guest

Log in