Skip to content

Commit

Permalink
Add comment for http_context fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackarain committed Jun 7, 2024
1 parent 2356ded commit 09237aa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions proxy/include/proxy/proxy_server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -481,9 +481,16 @@ R"x*x*x(<html>

struct http_context
{
// 在 http 请求时, 保存正则表达式命中时匹配的结果列表.
std::vector<std::string> command_;

// 保存 http 客户端的请求信息.
string_request& request_;

// 保存 http 客户端请求的原始目标.
std::string target_;

// 保存 http 客户端请求目标的具体路径, 即: doc 目录 + target_ 组成的路径.
std::string target_path_;
};

Expand Down

0 comments on commit 09237aa

Please sign in to comment.