https://github.com/abhishekshree/webserver-cpp
A simple HTTP Webserver in C++.
https://github.com/abhishekshree/webserver-cpp
Last synced: about 2 months ago
JSON representation
A simple HTTP Webserver in C++.
- Host: GitHub
- URL: https://github.com/abhishekshree/webserver-cpp
- Owner: abhishekshree
- License: mit
- Created: 2021-09-19T16:00:32.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-09-24T11:47:41.000Z (about 4 years ago)
- Last Synced: 2025-03-14T16:43:40.154Z (9 months ago)
- Language: C++
- Size: 12.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Webserver Library written purely in C++
This library essentially uses websockets to create a simple server listening on the _local network_.
Library Structure:
```
.
├── serverlib.hpp
├── Networking
│ ├── serverlib-networking.hpp
│ ├── Servers
│ ├── Sockets
│ └── test.sh
├── out
│ └── test
├── README.md
└── serve.sh
```
This server, as a test serves on port 8080, which is the default port.
Steps for launching the server:
- Execute the shell script `serve.sh` locally.
- Go to http://localhost/ to make a request to the server.
- Voilà!
---
Reference: [This blog](https://medium.com/from-the-scratch/http-server-what-do-you-need-to-know-to-build-a-simple-http-server-from-scratch-d1ef8945e4fa)