Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A high performance, single threaded, HTTP/1.1 server written in C++23 using BSD kqueue for socket event notification

License

Notifications You must be signed in to change notification settings

RamseyK/httpserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

126 Commits

Repository files navigation

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

Apache License v2.0. See LICENSE file.

About

A high performance, single threaded, HTTP/1.1 server written in C++23 using BSD kqueue for socket event notification

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

Languages

AltStyle によって変換されたページ (->オリジナル) /