HTTP/S 代理起点

2021-12-31 00:00:00 http https proxy c++

我想制作一个 HTTP/S 代理程序,根据我在 C++ 中解析 HTTP 请求的方式来过滤/拒绝某些 http 流量.

I would like to make an HTTP/S proxy program to filter/deny certain http traffic based on how I parse the HTTP request in C++.

是否有某种起点代码可以用于商业用途的开放许可?例如,如果我想做一个搜索项目,我会从 lucene 开始.

Is there some kind of starting point code that I can use with an open license for commercial use? For example if I wanted to do a project on searching I would start with lucene.

推荐答案

nginx 是一个高性能的 HTTP/S用 C 语言编写的服务器,可用作代理.

nginx is a high performance HTTP/S server written in C that can be used as a proxy.

它有一个易于使用的模块系统,您可以为其编写插件.您应该考虑使用像 Ragel 这样的现有解析器来帮助您在过滤方面.

It has a easy to use module system for which you can write plugins. You should consider using an existing parser like Ragel to help you on the filtering side.

它在 类似 BSD 的许可证下获得许可,非常适合商业用途.

It is licensed under a BSD-like license which is fine for commercial use.

相关文章