NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
载入中...
搜索中...
未找到
http_server_message.hpp 文件参考

HTTP服务器消息结构 更多...

#include "NeForce/core/container/buffer_chain.hpp"
#include "NeForce/core/utility/any.hpp"
#include "NeForce/network/http/http_session.hpp"
http_server_message.hpp 的引用(Include)关系图:

浏览该文件的源代码.

struct  neforce::http::http_server_request
 HTTP服务器请求结构 更多...
struct  neforce::http::http_server_response
 HTTP服务器响应结构 更多...

类型定义

using neforce::http_context = unordered_map<string, any>
 请求上下文,跨过滤器/中间件传递任意数据
using neforce::http::http_request = http_server_request
 HTTP请求类型别名
using neforce::http::http_response = http_server_response
 HTTP响应类型别名

详细描述

HTTP服务器消息结构

此文件提供了HTTP服务器端请求和响应的数据结构定义。 支持请求解析、参数提取、Cookie管理、会话关联等功能, 以及响应构建、重定向、Cookie设置等功能。

主要功能:

  • HTTP请求解析(方法、路径、头部、正文)
  • 请求参数提取(查询参数、表单数据、Cookie)
  • 会话关联
  • HTTP响应构建
  • 重定向支持
  • Cookie管理
  • 内容类型设置

在文件 http_server_message.hpp 中定义.