Function doFilter


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

virtual void doFilter(const HttpRequestPtr &req, FilterCallback &&fcb, FilterChainCallback &&fccb) override


This virtual function should be overrided in subclasses.

This method is an asynchronous interface, user should return the result via 'FilterCallback' or 'FilterChainCallback'.


req - is the request object processed by the filter

fcb - if this is called, the response object is send to the client by the callback, and doFilter methods of next filters and the handler registed on the path are not called anymore.

fccb - if this callback is called, the next filter's doFilter method or the handler registered on the path is called.


Line 30 in lib/inc/drogon/IntranetIpFilter.h.

Add Discussion as Guest

Log in to DocsForge