Function newCustomHttpResponse

Synopsis

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

template <typename T>
static HttpResponsePtr newCustomHttpResponse(T &&obj)

Description

Create a custom HTTP response object. For using this template, users must specialize the toResponse template.

Source

Lines 360-364 in lib/inc/drogon/HttpResponse.h.

template <typename T>
static HttpResponsePtr newCustomHttpResponse(T &&obj)
{
    return toResponse(std::forward<T>(obj));
}





Add Discussion as Guest

Log in to DocsForge