mendhak/http-https-echo is a Docker image that can echo various HTTP request properties back to client in the response, as well as in the Docker container logs. It comes with various options that can manipulate the response output.
For full usage details, visit the Github repository .
Features/options
Echoes request details (method, headers, path, query, body, and more) back to the client and container logs
Use different HTTP and HTTPS listener ports
Use for your own certificates
Trust additional forwarded-proxy IPs and subnets
JWT header decoding
HTTP/1 and HTTP/2 support
Suppress ExpressJS request log lines
Ability to ignore specific paths from logging
JSON payload echoing
Single-line logging
Ability to send an empty response
Custom response status codes
Custom response Content-Type
Configurable response delay to simulate slow responses
Body-only responses
Echo environment variables in the response
Configure CORS headers
mTLS client certificate details in the response
Preserve header case in the response body
Override the response body with a file
Maximum header size
Cookie and signed cookie echoing
Prometheus metrics export
Non root, should work with kubernetes/openshift
Curl output
docker logs output