https://github.com/h3rald/nimhttpd
A tiny static file web server written in Nim
https://github.com/h3rald/nimhttpd
http-server static-server webserver
Last synced: 8 months ago
JSON representation
A tiny static file web server written in Nim
- Host: GitHub
- URL: https://github.com/h3rald/nimhttpd
- Owner: h3rald
- License: mit
- Created: 2015-10-11T08:26:14.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-03-24T16:33:36.000Z (almost 2 years ago)
- Last Synced: 2025-03-30T21:39:31.649Z (10 months ago)
- Topics: http-server, static-server, webserver
- Language: Nim
- Homepage: https://h3rald.com/nimhttpd
- Size: 47.9 KB
- Stars: 82
- Watchers: 2
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://nimble.directory/pkg/nimhttpd)
[](https://github.com/h3rald/nimhttpd/releases/latest)
[](https://raw.githubusercontent.com/h3rald/nimhttpd/master/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)