simple-http-server

TheWaWaR · TheWaWaR.simple-http-server

Simple HTTP(s) Server

Command line utility to serve directories and files, very extensible

winget install --id TheWaWaR.simple-http-server --exact --source winget

Latest 0.8.0

Release Notes

• Compared to the previous Iron-based version, this release changes the server in these ways: Core

  • Replaced the old iron stack with an axum + tokio implementation.
  • Kept the CLI mostly compatible, but moved the codebase to a modern async HTTP stack.
  • Reorganized the implementation into separate modules for config, server setup, handlers, and utilities. TLS
  • TLS support is now behind a single tls feature and is disabled by default.
  • --cert and --certpass still accept PKCS#12 files, but they only work when the binary is built with --features tls.
  • On Linux and macOS, TLS uses system OpenSSL.
  • On Windows, TLS uses vendored OpenSSL to avoid CI and toolchain issues. User-visible behavior changes
  • --upload-size-limit now supports human-readable values such as 30K, 50M, and 1G.
  • Size suffixes are interpreted in powers of 1024.
  • Upload limit errors are clearer: oversized uploads now return a readable 413 message instead of low-level stream errors.
  • Invalid multipart requests now return proper client errors instead of collapsing into 500 responses.
  • Internal 500 errors are now printed to stderr for easier debugging.
  • --open now uses https:// automatically when TLS is enabled.
  • --base-url is normalized consistently.
  • --try-file behavior is explicit: relative paths resolve against the server root, absolute paths are used as-is.
  • CORS preflight OPTIONS requests are handled directly.
  • Error pages escape injected text. Performance and resource usage
  • File responses are streamed instead of being buffered in full.
  • Compressed responses are streamed.
  • Uploads are streamed to temporary files instead of being fully buffered in memory.
  • Temporary upload files are cleaned up on multipart failures, including size-limit failures. Behavioral compatibility notes
  • Most existing flags and main server behavior remain aligned with the old version.
  • Colored request logging from the old implementation was removed.
  • Some historical edge-case behavior from the Iron middleware chain, especially around HEAD + compression, was intentionally cleaned up rather than preserved exactly. Quality
  • Added black-box HTTP tests for directory listing, try-file, basic auth, range requests, cache revalidation, CORS preflight, uploads, and gzip compression.
  • The new implementation passes tests and clippy in both default and tls builds.****

Installer type: portable

Architecture Scope Download SHA256
x64 Download 6FAAC740DF27E317125F562A4F5239FC2D95161AEA995930929B1C895994AA9B

Details

Homepage
https://github.com/TheWaWaR/simple-http-server
License
MIT
Publisher
TheWaWaR
Support
https://github.com/TheWaWaR
Moniker
simple-http-server

Tags

filehttprustserversimplehttpserverstatic

Older versions (4)

0.6.14
Architecture Scope Download SHA256
x64 Download 0954A3BBF362B7CA09FEC0E09056B518497B289665237CCC5A6BEAFBE6D6A45F
0.6.13
Architecture Scope Download SHA256
x64 Download 6117D084BFBF20A2F35C25C7C89BD7C3C2E3E8F95A368CE2C3AFF4A9443B4AFD
0.6.12
Architecture Scope Download SHA256
x64 Download F19E960ABCDC1274B04F1640C08187A166CED4746288A984E880FE6CC738C34F
0.6.9
Architecture Scope Download SHA256
x64 Download F900EB5CDB64E3219949F83241E0C0C1FF06EECBE9A191AF92F4A1BCDECA5F50