|
Safeheron-SGX-Native-Development-Framework v1.2.0
|
Abstract base class for HTTP request filters. More...
#include <ssgx_http_t_filter.h>
Public Member Functions | |
| virtual bool | Before (Request &request, Response &response) |
| Perform filtering before the request handler is executed. | |
| virtual void | After (Request &request, Response &response) |
| Perform filtering after the request handler is executed. | |
| virtual | ~Filter ()=default |
| Destructor. | |
Abstract base class for HTTP request filters.
Filters are used to modify or inspect HTTP requests and responses before or after handling them. Derived classes can override the Before and After methods to implement custom filtering logic.
|
virtualdefault |
Destructor.
Perform filtering after the request handler is executed.
This method is called after the handler for the HTTP request is executed. It allows you to modify or inspect the request and response.
| request | The HTTP request object. |
| response | The HTTP response object. |
Perform filtering before the request handler is executed.
This method is called before the handler for the HTTP request is executed. It allows you to modify or inspect the request and response.
| request | The HTTP request object. |
| response | The HTTP response object. |