capocasa / nimhttpd

A tiny static file web server written in Nim

Home Page:https://h3rald.com/nimhttpd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

About

A tiny static file web server written in Nim

https://h3rald.com/nimhttpd

License:MIT License


Languages

Language:Nim 73.6%Language:CSS 26.4%