Function contentType

Synopsis

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

virtual ContentType contentType() const =0

Description

Get the response content type.

Set the reponse content type and the character set. virtual void setContentTypeCodeAndCharacterSet(ContentType type, const std::string &charSet = "utf-8") = 0;

Source

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






Add Discussion as Guest

Log in to DocsForge