dummyhttp(1) General Commands Manual dummyhttp(1) NAME dummyhttp - Super simple HTTP server that replies with a fixed body and a fixed response code SYNOPSIS 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] DESCRIPTION Super simple HTTP server that replies with a fixed body and a fixed response code OPTIONS -q, --quiet Be quiet (log nothing) -v, --verbose Be verbose (log data of incoming and outgoing requests). If given twice it will also log the body data -p, --port=PORT [default: 8080] Port on which to listen -H, --headers=HEADERS Headers to send (format: key:value) -c, --code=CODE [default: 200] HTTP status code to send -b, --body=BODY [default: dummyhttp] 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)}}" -i, --interface=INTERFACE [default: 0.0.0.0] Interface to bind to --print-completions=shell Generate completion file for a shell [possible values: bash, elvish, fish, powershell, zsh] --print-manpage Generate man page --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.0.3 AUTHORS Sven-Hendrik Haase dummyhttp 1.0.3 dummyhttp(1)