Dumb server that helps you serve files from a path via HTTP.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Go to file
Darshil Chanpura bf3a40ffb7
Updated README, added code for logging handler and its record
5 years ago
README.md Updated README, added code for logging handler and its record 5 years ago
log_handler.go Updated README, added code for logging handler and its record 5 years ago
log_record.go Updated README, added code for logging handler and its record 5 years ago
main.go Updated README, added code for logging handler and its record 5 years ago

README.md

dumb-http

Simple HTTP Server

Usage

dumb-http [-path path-to-serve] [port]

Example

$ dumb-http -path ./docs
Serving at http://0.0.0.0:8000/ from ./docs
127.0.0.1 - - [05/Jul/2018 18:08:16] "GET / HTTP/1.1" 200 38 0.0000 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:61.0) Gecko/20100101 Firefox/61.0"

Inspired by Python module http.server

Reference: https://gist.github.com/cespare/3985516