Safeheron-SGX-Native-Development-Framework v1.2.0
Loading...
Searching...
No Matches
ssgx::http_t::Filter Class Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~Filter()

virtual ssgx::http_t::Filter::~Filter ( )
virtualdefault

Destructor.

Member Function Documentation

◆ After()

virtual void ssgx::http_t::Filter::After ( Request & request,
Response & response )
inlinevirtual

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.

Parameters
requestThe HTTP request object.
responseThe HTTP response object.

◆ Before()

virtual bool ssgx::http_t::Filter::Before ( Request & request,
Response & response )
inlinevirtual

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.

Parameters
requestThe HTTP request object.
responseThe HTTP response object.
Returns
True to continue processing, or false to stop and return the response early.

The documentation for this class was generated from the following file: