4 ms·
It's easier with Connect/Express haha, stream.pipe(res) vs callback(200, {}, stream). We've been down this road in the past, in fact Express started out a bit m
by tjholowaychuk 15y ago
It's easier with Connect/Express haha, stream.pipe(res) vs callback(200, {}, stream). We've been down this road in the past, in fact Express started out a bit more like this, abstracting away node's req/res, but it's a leaky abstraction that doesn't really provide any real benefit. As far as "filtering" on streams etc, this is something node core should provide (and will be shortly) so it's irrelevant in that respect as well