Skip to content

Latest commit

 

History

History
73 lines (44 loc) · 1.21 KB

README.md

File metadata and controls

73 lines (44 loc) · 1.21 KB

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