c/c++/python有什么值得阅读的web服务器代码


比如nginx、tornado这种?

我觉得nginx会不会比较复杂,有没有上手简单一点的?

c server python C++

GEAR3 9 years, 7 months ago

Python 实现:

  • tornado

  • 简单上手:

    • python 标准库 SimpleHTTPServer
    • WSGI 工具库 werkzeug
damnit answered 9 years, 7 months ago

PHP从5.4开始提供有一个CLI HTTP Server,能够提供基本的HTTP服务(没有目录列表和重写这些功能):
php-src/blob/master/sapi/cli/php_cli_server.c

MSoul answered 9 years, 7 months ago

编程随想整理的C++和python开源项目清单,很全了:
https://github.com/programthink/opensource

另外这里的C++的优秀的开源项目按类别分出来,很清晰,选择你需要的web项目吧:
https://cpp.zeef.com/faraz.fallahi

咿呀咿呀哟 answered 9 years, 7 months ago

Python 可以看看web.py 基于Cherry的非常轻量的Http server

吴克的呐喊 answered 9 years, 7 months ago

Tornado和Flask读一下都非常不错。

德罗巴X卡卡 answered 9 years, 7 months ago

C语言看看goahead吧。

airutii answered 9 years, 7 months ago

推荐读nginx 读完你会感觉自己变了一个人

春哥木YY answered 9 years, 7 months ago

Your Answer