Dumb server that helps you serve files from a path via HTTP.
 
 
Go to file
Darshil Chanpura 6922ba74e1 Update: added Makefile, editorconfig and dependency management (not needed though) 2018-07-06 22:24:50 +05:30
.editorconfig Update: added Makefile, editorconfig and dependency management (not needed though) 2018-07-06 22:24:50 +05:30
.gitignore Changed totalTime -> duration and gitignore file added 2018-07-05 23:57:31 +05:30
Gopkg.lock Update: added Makefile, editorconfig and dependency management (not needed though) 2018-07-06 22:24:50 +05:30
Gopkg.toml Update: added Makefile, editorconfig and dependency management (not needed though) 2018-07-06 22:24:50 +05:30
Makefile Update: added Makefile, editorconfig and dependency management (not needed though) 2018-07-06 22:24:50 +05:30
README.md Updated README, added code for logging handler and its record 2018-07-05 23:48:35 +05:30
log_handler.go Changed totalTime -> duration and gitignore file added 2018-07-05 23:57:31 +05:30
log_record.go Update: formated duration as string 2018-07-06 21:18:09 +05:30
main.go Updated README, added code for logging handler and its record 2018-07-05 23:48:35 +05:30

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