.ie \n(.g .ds Aq \(aq .el .ds Aq ' .TH dummyhttp 1 "dummyhttp 1.1.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\-d\fR|\fB\-\-delay\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 \fI\fR [default: 8080] Port on which to listen .TP \fB\-H\fR, \fB\-\-headers\fR \fI\fR Headers to send (format: key:value) .TP \fB\-c\fR, \fB\-\-code\fR \fI\fR [default: 200] HTTP status code to send .TP \fB\-b\fR, \fB\-\-body\fR \fI\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 \fI\fR [default: 0.0.0.0] Interface to bind to .TP \fB\-d\fR, \fB\-\-delay\fR \fI\fR [default: 0] Delay in milliseconds before sending the response in milliseconds .TP \fB\-\-print\-completions\fR \fI\fR Generate completion file for a shell .br .br \fIPossible values:\fR .RS 14 .IP \(bu 2 bash .IP \(bu 2 elvish .IP \(bu 2 fish .IP \(bu 2 powershell .IP \(bu 2 zsh .RE .TP \fB\-\-print\-manpage\fR Generate man page .TP \fB\-\-tls\-cert\fR \fI\fR TLS certificate to use .TP \fB\-\-tls\-key\fR \fI\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.1.3 .SH AUTHORS Sven\-Hendrik Haase