Skip to content

Latest commit

 

History

History
executable file
·
35 lines (26 loc) · 935 Bytes

README.md

File metadata and controls

executable file
·
35 lines (26 loc) · 935 Bytes

HTTP Server

Ramsey Kant https://github.com/RamseyK/httpserver

A high performance, single threaded, HTTP/1.1 server written in C++ to serve as a kqueue socket management and HTTP/1.1 protocol learning tool on BSD systems

Features

  • Clean, documented code
  • Efficient socket management with kqueue
  • Easy to understand HTTP protocol parser (from my ByteBuffer project)
  • Tested on FreeBSD and MacOS

Compiling

Usage


$ cat server.config 
vhost=10.0.10.86,acme.local
port=8080
diskpath=./htdocs

$ ./httpserver 
Primary port: 8080, disk path: ./htdocs
vhost: 10.0.10.86
vhost: acme.local
Server ready. Listening on port 8080...

License

See LICENSE.TXT