Skip to content
/ chttpd Public

A single threaded multi process HTTP 1.1 Server implemented in C records apache-like access logs.

License

Notifications You must be signed in to change notification settings

youpong/chttpd

Repository files navigation

C/C++ CI

Web Server

A multi-process HTTP 1.1 Server implemented in C, records apache-like access logs.

This software is released under MIT license.

Prerequisite

  • clang
  • clangd
  • make
  • bear
  • doxygen

RUNNING

The web server runs on Ubuntu-20.04 x86_64.

To start the server, run the following command:

$ ./httpd [-r DOCUMENT_ROOT] [-l ACCESS_LOG] [-p PORT]

To stop the server, just press Ctrl+C on the command line.

options:

  • -r DOCUMENT_ROOT : set document root (default: www)

  • -l ACCESS_LOG : set access log (default: access.log)

  • -p PORT : listen port PORT (default: 8088)

To show the version, run the following command:

$ ./httpd -v

BUILD

To build, run the following command:

$ make -j${nproc} all

TEST

To test, run the following command:

$ make check

API Docs

To generate api docs, run the following command:

$ make docs

Reference

About

A single threaded multi process HTTP 1.1 Server implemented in C records apache-like access logs.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published