Function setPassThrough

Synopsis

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

virtual void setPassThrough(bool flag)=0

Description

Set the reponse object to the pass-through mode or not. It's not by default when a new response object is created. In pass-through mode, no addtional headers (including server, date, content-type and content-length, etc.) are added to the response. This mode is useful for some applications such as a proxy.

Parameters

flag -

Source

Line 307 in lib/inc/drogon/HttpResponse.h.






Add Discussion as Guest

Log in