#include <lib/inc/drogon/HttpAppFramework.h> virtual HttpAppFramework & registerHttpResponseCreationAdvice(const std::function< void(const HttpResponsePtr &)> &advice)=0
Register an advice for new HTTP responses.
advice- is called immediately when a new HTTP response is created. Users can use the callback to modify the response if they want.
- This advice is called before any subsequent operation on the response is performed by drogon or applications, so some modification (e.g. modification on the status code) in this callback may be overrided by subsequent operations.
- AOP Aspect Oriented Programming / Predefined joinpoints