31 lines
841 B
Markdown
31 lines
841 B
Markdown
# HTTPServer
|
|
|
|
This is a simple HTTP server meant to emulate python's SimpleHTTPServer module.
|
|
|
|
[![Go Report Card](https://goreportcard.com/badge/git.ailur.dev/ailur/httpserver)](https://goreportcard.com/report/git.ailur.dev/ailur/httpserver) [![Go Reference](https://pkg.go.dev/badge/git.ailur.dev/ailur/httpserver.svg)](https://pkg.go.dev/git.ailur.dev/ailur/httpserver)
|
|
|
|
## 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://git.ailur.dev/ailur/httpserver --depth=1
|
|
cd httpserver/httpserver
|
|
make install
|
|
```
|
|
|
|
## Compiling
|
|
```
|
|
git clone https://git.ailur.dev/ailur/httpserver --depth=1
|
|
cd httpserver/httpserver
|
|
make
|
|
```
|
|
This creates the binary "httpserver" |