An open API service indexing awesome lists of open source software.

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++.

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)