This is a Proxy Server for Node.js submitted as the pre-work requirement for CodePath.
Time spent: [Write the number of hours you spend here]
Completed:
- Required: Requests to port
8000
are echoed back with the same HTTP headers and body - Required: Requests/reponses are proxied to/from the destination server
- Required: The destination server is configurable via the
--host
,--port
or--url
arguments - Required: The destination server is configurable via the
x-destination-url
header - Required: Client requests and respones are printed to stdout
- Required: The
--logfile
argument outputs all logs to the file specified instead of stdout - Optional: The
--exec
argument proxies stdin/stdout to/from the destination program
Walkthrough Gif: