dummyhttp(1)
π dummyhttp(1) β the general commands manual, but make it cute
okay bestie so picture this: you need a lil HTTP server, like right now, and you do NOT have the energy to write a whole app. enter dummyhttp, your new main character. it's from the General Commands Manual section (iykyk) and it's genuinely so simple it's iconic.
β¨ NAME β¨
dummyhttp β the super simple HTTP server that replies with a fixed body and a fixed response code. that's it. that's the whole vibe. π
πΈ SYNOPSIS πΈ
dummyhttp [-q|--quiet] [-v|--verbose]... [-p|--port] [-H|--headers]
[-c|--code] [-b|--body] [-i|--interface] [-d|--delay]
[--print-completions] [--print-manpage] [--tls-cert] [--tls-key]
[-h|--help] [-V|--version]
π¦ DESCRIPTION π¦
Super simple HTTP server that replies with a fixed body and a fixed response code.
no cap, that's the entire description. it does one thing and it does it flawlessly. obsessed. π
β¨ OPTIONS β¨
-q,--quietβ be quiet. like, log nothing at all. shhh π€«-v,--verboseβ be verbose, bestie: log the data of incoming AND outgoing requests. and if you pass it twice it'll also log the body data. double the-v, double the tea β-p,--port<PORT> [default:8080] β the port on which to listen. 8080 unless you say otherwise π-H,--headers<HEADERS> β headers to send (format:key:value)-c,--code<CODE> [default:200] β the HTTP status code to send. 200 = living your best life, but you do you π-b,--body<BODY> [default:dummyhttp] β the HTTP body to send. literally defaults to the stringdummyhttp, adorable.
it supports Tera-based templating (https://tera.netlify.app/docs/) with a few additional functions over the default built-ins:
uuid()β generate a random UUIDlorem(words)β generatewordslorem ipsum words
example, fr fr:
dummyhttp -b "Hello {{ uuid() }}, it's {{ now() | date(format="%Y") }} {{ lorem(words=5)}}"
-i,--interface<INTERFACE> [default:0.0.0.0] β interface to bind to.0.0.0.0out of the box π«Ά-d,--delay<DELAY> [default:0] β delay in milliseconds before sending the response, in milliseconds. yes it says milliseconds twice, and yes we respect it π--print-completions<shell> β generate a completion file for a shell
possible values:
bashelvishfishpowershellzsh
--print-manpageβ generate man page (meta, I know, we love a self-aware icon)--tls-cert<TLS_CERT> β TLS certificate to use π--tls-key<TLS_KEY> β TLS private key to use-h,--helpβ print help (see a summary with-h)-V,--versionβ print version
π VERSION π
v1.1.3 β she's v1.1.3 and she's thriving β¨
π AUTHORS π
Sven-Hendrik Haase <svenstaro@gmail.com> β the legend who made this whole thing happen π«‘π
and that's the page, bestie π this was dummyhttp 1.1.3, served fresh from the General Commands Manual β go forth and serve your fixed body with your fixed response code. periodt. π
π₯
π¦ where this page comes from
- arch rolling: dummyhttp 1.1.3-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms