Function setFileTypes

Synopsis

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

virtual HttpAppFramework & setFileTypes(const std::vector< std::string > &types)=0

Description

Set types of files that can be downloaded.

Example: app.setFileTypes({"html","txt","png","jpg"});

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

Source

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






Add Discussion as Guest

Log in to DocsForge