.ie \n(.g .ds Aq \(aq .el .ds Aq ' .TH dummyhttp 1 "dummyhttp 1.0.3" .SH NAME dummyhttp \- Super simple HTTP server that replies with a fixed body and a fixed response code .SH SYNOPSIS \fBdummyhttp\fR [\fB\-q\fR|\fB\-\-quiet\fR] [\fB\-v\fR|\fB\-\-verbose\fR]... [\fB\-p\fR|\fB\-\-port\fR] [\fB\-H\fR|\fB\-\-headers\fR] [\fB\-c\fR|\fB\-\-code\fR] [\fB\-b\fR|\fB\-\-body\fR] [\fB\-i\fR|\fB\-\-interface\fR] [\fB\-\-print\-completions\fR] [\fB\-\-print\-manpage\fR] [\fB\-\-tls\-cert\fR] [\fB\-\-tls\-key\fR] [\fB\-h\fR|\fB\-\-help\fR] [\fB\-V\fR|\fB\-\-version\fR] .SH DESCRIPTION Super simple HTTP server that replies with a fixed body and a fixed response code .SH OPTIONS .TP \fB\-q\fR, \fB\-\-quiet\fR Be quiet (log nothing) .TP \fB\-v\fR, \fB\-\-verbose\fR Be verbose (log data of incoming and outgoing requests). If given twice it will also log the body data .TP \fB\-p\fR, \fB\-\-port\fR=\fIPORT\fR [default: 8080] Port on which to listen .TP \fB\-H\fR, \fB\-\-headers\fR=\fIHEADERS\fR Headers to send (format: key:value) .TP \fB\-c\fR, \fB\-\-code\fR=\fICODE\fR [default: 200] HTTP status code to send .TP \fB\-b\fR, \fB\-\-body\fR=\fIBODY\fR [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\*(Aqs {{ now() | date(format="%Y") }} {{ lorem(words=5)}}" .TP \fB\-i\fR, \fB\-\-interface\fR=\fIINTERFACE\fR [default: 0.0.0.0] Interface to bind to .TP \fB\-\-print\-completions\fR=\fIshell\fR Generate completion file for a shell .br .br [\fIpossible values: \fRbash, elvish, fish, powershell, zsh] .TP \fB\-\-print\-manpage\fR Generate man page .TP \fB\-\-tls\-cert\fR=\fITLS_CERT\fR TLS certificate to use .TP \fB\-\-tls\-key\fR=\fITLS_KEY\fR TLS private key to use .TP \fB\-h\fR, \fB\-\-help\fR Print help (see a summary with \*(Aq\-h\*(Aq) .TP \fB\-V\fR, \fB\-\-version\fR Print version .SH VERSION v1.0.3 .SH AUTHORS Sven\-Hendrik Haase