Function setServerHeaderField

Synopsis

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

virtual HttpAppFramework & setServerHeaderField(const std::string &server)=0

Description

Set the 'server' header field in each response sent by drogon.

Parameters:

server - empty string by default with which the 'server' header field is set to "Server: drogon/version string\r\n"

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

Source

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






Add Discussion as Guest

Log in to DocsForge