nick94404 / proxy_server

0 stars 0 forks source link

ProxyServer is ready for review. #1

Open nick94404 opened 8 years ago

nick94404 commented 8 years ago

My proxy server assignment is ready for review. /cc @codepathreview @codepath
With this exercise, I am able to to log request headers and body to a log file. But how do I log response payload to the client on proxy server?

codepathreview commented 8 years ago

Apologies for delayed grading. Response times during the course will be much shorter.

For this submission to be considered complete...

Please use the provided Pre-work README.md, Example README.md and the Submitting Assignments Guide for how to properly submit an assignment.

codepathreview commented 8 years ago
let outboundRes = request(outboundUrl)
logFileStream.write(JSON.stringify(outboundRes.headers))
outboundRes.pipe(res)
outboundRes.pipe(logFileStream)