Function newCustomHttpRequest

Synopsis

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

template <typename T>
static HttpRequestPtr newCustomHttpRequest(T &&obj)

Description

Create a custom HTTP request object. For using this template, users must specialize the toRequest template.

Source

Lines 373-377 in lib/inc/drogon/HttpRequest.h.

template <typename T>
static HttpRequestPtr newCustomHttpRequest(T &&obj)
{
    return toRequest(std::forward<T>(obj));
}





Add Discussion as Guest

Log in to DocsForge