Function setImplicitPageEnable

Synopsis

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

virtual HttpAppFramework & setImplicitPageEnable(bool useImplicitPage)=0

Description

Set to enable implicit pages, enabled by default.

Implicit pages are used when the server detects if the user requested a directory. By default, it will try to append index.html to the path, see setImplicitPage() if you want to customize this (http://localhost/a-directory resolves to http://localhost/a-directory/index.html by default).

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

Source

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






Add Discussion as Guest

Log in