This is a simple HTTP server written in C using sockets.
Follow the steps bellow, to install:
- Install
make
If you are in a linux distribution OS, this step is not needed
- In the project folder, run the command bellow, to install:
make
or
make install
- Run the server with the command:
make run
- The server will be available in
http://localhost:8383
- Accepts GET & HEAD requests
- In the default path returns the
index.html
- If the entered route not exists, return
404
- If the request came with invalid method, return
405
200 (OK)
404 (Not Found)
405 (Method Not Allowed)