![]() |
C++ Web Framework
3.0
|
The Filter class works like a filter. You can use this class to validate sessions or measuring runtime of a specific method, for example. To use this class, you will need to create a derived class and reconstruct the doFilter method, after this, you will need to configure it into the ConfigureCppWebServer, using the setFilter method. More...
#include <filter.h>
Public Member Functions | |
| virtual | ~Filter () |
| Virtual destructor. | |
| virtual void | doFilter (CWF::Request &request, CWF::Response &response, FilterChain &chain) |
| This method will be called always that the CppWebServer receives a requisition. More... | |
The Filter class works like a filter. You can use this class to validate sessions or measuring runtime of a specific method, for example. To use this class, you will need to create a derived class and reconstruct the doFilter method, after this, you will need to configure it into the ConfigureCppWebServer, using the setFilter method.
|
inlinevirtual |
This method will be called always that the CppWebServer receives a requisition.
| request | : This is a reference to the Request. |
| response | : This is a reference to the Response. |
| chain | : This is a reference to the FilterChain. |
1.8.13