allow method chaining with .on()

This commit is contained in:
pspi
2014-11-17 08:26:47 +02:00
parent 71e7549601
commit 26c17dce8d
2 changed files with 9 additions and 0 deletions
+7
View File
@@ -197,3 +197,10 @@ r.post(str);
r(options);
r.get(options);
r.post(options);
request
.get('http://example.com/example.png')
.on('response', function(response) {
// check response
})
.pipe(request.put('http://another.com/another.png'));