simple-httpd
simple-httpd is aimed to be a simple replacement for using python -m SimpleHTTPServer to serve local files. Like SimpleHTTPServer, simple-httpd supports HTTP GET and HEAD requests and adheres to the HTTP/1.1 RFC 2616 guidelines.
The HTML output is a mix of the Python module layout and of an Apache directory listing layout.
What makes simple-httpd different than it's Python alternative is that it supports HTTP2 with Let's Encrypt integration for automatic TLS if enabled.
Installation
go get github.com/briandowns/simple-httpd
or
make install
or
Examples
HTTP/1.1 on default port
simple-httpd
HTTP/1.1 on the given port
simple-httpd -p 8181
HTTP/2 on the default port
simple-httpd -t some.valid.domain
The port assignment is for the HTTP server. The TLS port will be 8081 and both will responde to requests.
simple-httpd -p 8080 -t some.valid.domain
Contributions
File Issue with details of the problem, feature request, etc.
Submit a pull request and include details of what problem or feature the code is solving or implementing.