Function as

Synopsis

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

template <typename T>
T as() const

Description

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

Source

Lines 91-95 in lib/inc/drogon/HttpResponse.h.

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





Add Discussion as Guest

Log in