Documentation
¶
Overview ¶
Command faultproxy is an HTTP proxy that fails on purpose, for the acceptance harness's fault kit (the project's plan/prime-time- environment.md): set as HTTPS_PROXY, it makes every connection dockhand asks for stall, reset, or answer 502, or tunnels it through unchanged; stall-body tunnels it until the host has sent -after bytes, past TLS's handshake and a response's headers, then sends no more, so the stall falls in a body, not the handshake. It tunnels without decrypting, so it can cut a connection but never rewrite one.
faultproxy -mode stall|stall-body|reset|5xx|pass [-after 65536] [-listen 127.0.0.1:0]
It prints the address it listens on, one line, then serves until it is stopped, logging each request's method and host, so a row can show which hosts dockhand asked.