dummyhttp(1) General Commands Manual dummyhttp(1)

dummyhttp - Super simple HTTP server that replies with a fixed body and a fixed response code

dummyhttp [-q|--quiet] [-v|--verbose]... [-p|--port] [-H|--headers] [-c|--code] [-b|--body] [-i|--interface] [--print-completions] [--print-manpage] [--tls-cert] [--tls-key] [-h|--help] [-V|--version]

Super simple HTTP server that replies with a fixed body and a fixed response code

Be quiet (log nothing)
Be verbose (log data of incoming and outgoing requests). If given twice it will also log the body data
Port on which to listen
Headers to send (format: key:value)
HTTP status code to send
HTTP body to send

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: dummyhttp -b "Hello {{ uuid() }}, it's {{ now() | date(format="%Y") }} {{ lorem(words=5)}}"

Interface to bind to
Generate completion file for a shell

[possible values: bash, elvish, fish, powershell, zsh]

Generate man page
TLS certificate to use
TLS private key to use
Print help (see a summary with '-h')
Print version

v1.0.3

Sven-Hendrik Haase <svenstaro@gmail.com>

dummyhttp 1.0.3