Skip to content

lionkor/http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

http

A small http server written in C.

Don't use in production environments, don't run as root user, etc.

How to Use

http-server <port>

Hosts the current working directory (cwd) under the specified port on the system.

How to build

Requirements

  • A POSIXy OS (pthread, unistd.h, ...)
  • A C compiler
  • CMake
  • Make

Cloning

  1. git clone

Building

  1. cmake . -B bin
  2. make -j $(nproc) -C bin
  3. Binary is bin/http-server

Installing

With ~/.local/bin or similar in your path, just copy or symlink http-server there.


I'm not liable for any damage caused by this program or any of its components, not responsible for anything you do with it, and there's no warranty of any kind on it. Please, for the love of god, don't actually use this as a http server. It's just a hobby project.

About

A small http server written in C.

Resources

Stars

Watchers

Forks

Releases

No releases published