Function as

Synopsis

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

template <typename T>
T as() const

Description

This template enables explicit type conversion, see the above template.

Source

Lines 99-103 in lib/inc/drogon/HttpRequest.h.

template <typename T>
T as() const
{
    return fromRequest<T>(*this);
}





Add Discussion as Guest

Log in to DocsForge