Function instance
Synopsis
#include <lib/inc/drogon/HttpAppFramework.h>
static HttpAppFramework & instance()
Description
Get the instance of HttpAppFramework.
HttpAppFramework works at singleton mode, so any calling of this method gets the same instance; Calling drogon::HttpAppFramework::instance() can be replaced by a simple interface – drogon::app()
Mentioned in
- View / A simple example
- Session / Examples of sessions
Source
Line 70 in lib/inc/drogon/HttpAppFramework.h.