Total Pageviews

Thursday, 18 August 2016

一个用haskell写的HTTP server程序-Mighttpd

Mighttpd2 (called mighty) is a simple but practical HTTP server written in Haskell. It handles static files and CGI scripts. It also provides a feature of reverse proxy and URL rewriting with HTTP redirect.
Mighttpd2 is now implemented as a WAI application using the high-performance HTTP engine, "Warp". To httperf Ping-Pong benchmark, the performance of Mighttpd2 is similar to that of nginx.
This domain "Mew.org" is provided with Mighttpd2.
Here are features provided by Mighty:
  • Redirection and language negotiation
  • CGI: GET and POST
  • Index of files in a directory should be statically created by the "mighty-mkindex" command.
  • Reverse proxy
Here are slides/articles of Mighttpd:
from  http://mew.org/~kazu/proj/mighttpd/en/,
https://github.com/kazu-yamamoto/mighttpd2