Function setBrStatic

Synopsis

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

virtual HttpAppFramework & setBrStatic(bool useGzipStatic)=0

Description

Set the br_static option.

If it is set to true, when the client requests a static file, drogon first finds the compressed file with the extension ".br" in the same path and send the compressed file to the client. The default value is true.

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

Source

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






Add Discussion as Guest

Log in to DocsForge