/Server

Primary LanguageCMIT LicenseMIT

███████╗███████╗██████╗ ██╗   ██╗███████╗██████╗ 
██╔════╝██╔════╝██╔══██╗██║   ██║██╔════╝██╔══██╗
███████╗█████╗  ██████╔╝██║   ██║█████╗  ██████╔╝
╚════██║██╔══╝  ██╔══██╗╚██╗ ██╔╝██╔══╝  ██╔══██╗
███████║███████╗██║  ██║ ╚████╔╝ ███████╗██║  ██║
╚══════╝╚══════╝╚═╝  ╚═╝  ╚═══╝  ╚══════╝╚═╝  ╚═╝
A minimalist* server built in C
(*see features section)

Installation

git clone this repo

Instructions

use make to build the server

Usage

./server [-p PORT] [-i INDEX FILE] DOCROOT

Features

  • Handle GET requests
  • Capable of responding with: 200 400 403 404 418 500 501
  • Every incoming request gets printed to stderr

Meta

Ivan Cankov - ivanecankov@gmail.com

Distributed under the MIT license. See LICENSE for more information.

https://github.com/Ikurooo/

Contributing

At this time not allowing any external contributors