Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(problems): update http-client problem definition #194

Merged
merged 1 commit into from
Apr 5, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions problems/http_client/problem.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ To make a POST request, just call `request.post()` instead of `request()`:

var request = require('request');
var r = request.post('http://beep.boop:80/');

The `r` object that you get back from `request.post()` is a readable+writable
stream so you can pipe a readable stream into it (`src.pipe(r)`) and you can
pipe it to a writable stream (`r.pipe(dst)`).
Expand All @@ -20,5 +20,7 @@ You can even chain both steps together: src.pipe(r).pipe(dst);

Hint: for your code, src will be process.stdin and dst will be process.stdout.

Make sure to `npm install request` in the directory where your solution file
lives.
Make sure to do the following before verifying your solution:
- `npm install request` in the directory where your solution file lives.
- free port 8099 for the testing server by temporarily closing
other applications that use it, i.e. installing a module like node-portfinder.