https://github.com/romelium/very-simple-http-server-asio
This is a very simple and minimal HTTP server using the Asio library in C++. The code is only 28 lines long. This is meant to showcase how minimal you can make an HTTP server at a near barebone level while being cross-platform.
https://github.com/romelium/very-simple-http-server-asio
asio basic cmake cplusplus cpp html http http-server minimal simple vcpkg very-basic very-simple
Last synced: about 1 month ago
JSON representation
This is a very simple and minimal HTTP server using the Asio library in C++. The code is only 28 lines long. This is meant to showcase how minimal you can make an HTTP server at a near barebone level while being cross-platform.
- Host: GitHub
- URL: https://github.com/romelium/very-simple-http-server-asio
- Owner: Romelium
- Created: 2025-01-08T18:55:05.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-01-08T20:48:21.000Z (3 months ago)
- Last Synced: 2025-01-19T05:41:23.385Z (3 months ago)
- Topics: asio, basic, cmake, cplusplus, cpp, html, http, http-server, minimal, simple, vcpkg, very-basic, very-simple
- Language: C++
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Introduction
This is a simple HTTP server using the Asio library in C++. The server listens on port 8080. The code without the html content is only 28 lines long.
## Purpose
This is meant to showcase how minimal you can make an HTTP server at a near barebone level while being cross-platform. It also shows what to include to add an basic HTTP server to your project.
## Note
- This assumes you know how to build a CMake project.
- Make sure you use the **CMakePresets.json**, have **ninja** build system installed, and **VCPKG_ROOT** environment variable set. If you don't know what they are, just google them.