Go HTTP Forward Proxy with Raw HTTP Request Logging
This Go-based HTTP server acts as a forward proxy, handling incoming requests and forwarding them to target URLs based on path matching defined in a path.json file. The server logs each incoming request in raw HTTP message format (request line, headers, body) to .http files, ensuring compatibility with HTTP file examples.
- Uses only built-in Go packages (Go 1.25).
- Logs requests in a clear, structured HTTP format for easy debugging or analysis.
- Supports dynamic path-based routing to forward requests to different targets.
- Saves request details to uniquely named
.httpfiles, ensuring no overwrites. - Simple and lightweight, ideal for debugging and testing HTTP-based interactions.