A simple example of serving static responses.
A simple HTTP proxy.
Prints incoming requests.
A C++20-capable compiler is required. I suggest GCC 10 or later.
As of early 2021, you might need to install a newer compiler than you already have, for example from Debian experimental or Ubuntu toolchain-r.
fb64 is required for HTTP/2 upgrade.
Clone submodules to ensure it's available:
git submodule init
git submodule update
cmake -B build
make -C build
Executables are output to the build
directory.
The old Makefile build system might still work. Like this:
make depend
make
When built with CMake build:
build/hello-world
Makefile build:
./hello-world
The server will bind port 80 if possible, otherwise it binds port 8080.
Includes a functional implementation of HPACK, HTTP/2's header compression/decompression algorithm. Integration and implementation of HTTP/2 is underway.
See dependencies/hpack for the HPACK implementation.