Function registerPostRoutingAdvice

Summary

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

(1) virtual HttpAppFramework & registerPostRoutingAdvice(const std::function< void(const HttpRequestPtr &, AdviceCallback &&, AdviceChainCallback &&)> &advice)=0

(2) virtual HttpAppFramework & registerPostRoutingAdvice(const std::function< void(const HttpRequestPtr &)> &advice)=0

Function overload

Synopsis

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

virtual HttpAppFramework & registerPostRoutingAdvice(const std::function< void(const HttpRequestPtr &, AdviceCallback &&, AdviceChainCallback &&)> &advice)=0

Description

Register an advice called after routing.

Parameters:

advice - is called immediately after the request matchs a handler path and before any 'doFilter' method of filters applies. The parameters of the advice are same as those of the doFilter method of the Filter class.

Mentioned in

Source

Line 290 in lib/inc/drogon/HttpAppFramework.h.

Synopsis

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

virtual HttpAppFramework & registerPostRoutingAdvice(const std::function< void(const HttpRequestPtr &)> &advice)=0

Description

Register an observer called after routing.

Parameters:

advice - is called at the same time as the above advice. It can be thought of as an observer who cannot respond to http requests.

Note
This advice has less overhead than the above one. If one does not intend to intercept the http request, please use this interface.

Mentioned in

Source

Line 302 in lib/inc/drogon/HttpAppFramework.h.






Add Discussion as Guest

Log in to DocsForge