SimpleHTTPServer-like fileserver built in go
Go to file
Tracker-Friendly 641016fede Update README.md 2024-07-11 20:36:27 +01:00
.idea Initial commit 2024-07-11 18:18:29 +01:00
httpserver Initial commit 2024-07-11 18:18:29 +01:00
LICENSE.md Death by license 2024-07-11 20:31:25 +01:00
README.md Update README.md 2024-07-11 20:36:27 +01:00
go.mod Initial commit 2024-07-11 18:18:29 +01:00
main.go Initial commit 2024-07-11 18:18:29 +01:00

README.md

HTTPServer

This is a simple HTTP server meant to emulate python's SimpleHTTPServer module.

Usage

httpserver [-h] [--cgi] [-b ADDRESS] [-d DIRECTORY] [-p VERSION] [port]

Installing

First, have Go installed. Latest version, please. I'm talking about you debian.

Run as root

CDIR=$PWD
cd /tmp
git clone https://concord.hectabit.org/HectaBit/httpserver --depth=1
cd httpserver/httpserver
make install
cd $CDIR
CDIR=

This also puts your enviroment right back where it was, how nice of me!

Compiling

git clone https://concord.hectabit.org/HectaBit/httpserver --depth=1
cd httpserver/httpserver
make

This creates the binary "httpserver"