|
NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
HTTP过滤器链 更多...
#include <http_filter.hpp>
Public 成员函数 | |
| http_filter_chain (const bool owns_filters) | |
| 构造函数 | |
| void | add_filter (unique_ptr< http_filter > filter) |
| 添加过滤器(转移所有权) | |
| void | add_filter_ref (http_filter *filter) |
| 添加过滤器(不转移所有权) | |
| void | clear () noexcept |
| 清空所有过滤器 | |
| NEFORCE_NODISCARD size_t | size () const noexcept |
| 获取过滤器数量 | |
| NEFORCE_NODISCARD bool | empty () const noexcept |
| 检查过滤器链是否为空 | |
| bool | execute_pre_filters (http_request &request, http_response &response) |
| 执行所有预过滤器 | |
| void | execute_post_filters (http_request &request, http_response &response) |
| 执行所有后过滤器 | |
| void | execute_filters (http_request &request, http_response &response) |
| 执行所有核心过滤器 | |
|
inlineexplicit |
| void http_filter_chain::add_filter | ( | unique_ptr< http_filter > | filter | ) |
| void http_filter_chain::add_filter_ref | ( | http_filter * | filter | ) |
|
inlinenoexcept |
| void http_filter_chain::execute_filters | ( | http_request & | request, |
| http_response & | response ) |
执行所有核心过滤器
| request | HTTP请求 |
| response | HTTP响应 |
| void http_filter_chain::execute_post_filters | ( | http_request & | request, |
| http_response & | response ) |
执行所有后过滤器
| request | HTTP请求 |
| response | HTTP响应 |
| bool http_filter_chain::execute_pre_filters | ( | http_request & | request, |
| http_response & | response ) |
执行所有预过滤器
| request | HTTP请求 |
| response | HTTP响应 |
|
inlinenoexcept |