nimhttpd

A tiny static file web server.

Pure Nim score 30/100 · tests present · docs generated

Summary

Latest Version Unknown
License MIT
CI Status Passing
Downloads 0
Last Indexed 2026-07-21 05:24

Installation

nimble install nimhttpd
choosenim install nimhttpd
git clone https://git.sr.ht/~h3rald/nimhttpd

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
nimhttpd - - - - - - -

Source

Repository https://git.sr.ht/~h3rald/nimhttpd
Homepage https://h3rald.com/nimhttpd
Documentation View Documentation
Registry Source nimble_official

README

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)