~h3rald/nimhttpd

A tiny static file web server written in Nim
Fixed problem when serving parent directories.
Added description
Fixed deprecation warning.

clone

read-only
https://git.sr.ht/~h3rald/nimhttpd
read/write
git@git.sr.ht:~h3rald/nimhttpd

You can also use your local clone with git send-email.

Nimble

Release License

#NimHTTPd

NimHTTPd is a minimal web server that can be used to serve static files.

#Usage

nimhttpd [ -p:port -t:title -a:address -6:ipv6 -H:"key: val" ] [ directory ]

Where:

  • directory is the directory to serve (default: current directory).
  • port is the port to listen to (default: 1337). If the specified port is unavailable, the number will be incremented until an available port is found.
  • address is the address to bind to (default: localhost; use "0.0.0.0" to accept any IPv4 address).
  • ipv6 is the IPv6 address to bind to (default: localhost; use "::" to accept any IPv6 address).
  • title is the title to use when listing the contents of a directory.
  • -H is a custom header (Specified like in curl)