Skip to content

M3stark/LeptHttp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeptHttp

A lept HTTP web server, coding in Linux.

Usage:

  • git clone the code.
git clone git@github.com:M3stark/LeptHttp.git
  • cd to the dir.
cd ~./LeptHttp
  • make the project.
make
  • run target with port name.
./webserver 10000

usage_sample

  • Open the browser, input the the resources.
http:// your link : port name / index.html

Highlights:

  • Using Thread Pool, Non-blocking Socket, Epoll and Proactor in this work.
  • Using State Machine to resolve the HTTP request.
  • Using Webbench to test presure.