dummyhttp(1)

πŸ“¦
version 1.1.3 Β· 2 versions
, in arch rolling

πŸ’… 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 string dummyhttp, 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 UUID
  • lorem(words) β€” generate words lorem 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.0 out 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:

  • bash
  • elvish
  • fish
  • powershell
  • zsh
  • --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