Function setContentTypeCode

Synopsis

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

virtual void setContentTypeCode(ContentType type)=0

Description

Set the response content type, such as text/html, text/plaint, image/png and so on. If the content type is a text type, the character set is utf8.

Source

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






Add Discussion as Guest

Log in to DocsForge