Total Pageviews

Friday 21 September 2018

一个微型的http server程序-lo

A tiny http server based on event loop and pthread pool,just support for Mac OS X.

Basic:

基于事件驱动Kqueue和线程池的并发web服务器,使用HTTP1.1协议,支持GET,POST方法。

Building and Running:

OS X

    $ git clone https://github.com/Leviathan1995/Lo.git
    $ make
    $ ./lo
  • 打开浏览器输入: localhost:8080/home.html
  • /test文件下为测试文件,包括文本与图片

Support:

  • Request method: GET,POST
from https://github.com/Leviathan1995/Lo

No comments:

Post a Comment