Closed abettadapur closed 2 years ago
@puzrin Lmk if this change makes sense!
I don't see reasons for this change and don't like to change api "just for fun". Http and stream probers are different things, why should they have similar options?
Hi @puzrin, agree we should be careful with API changes. I thought this change might be useful to reduce the differences between the top level APIs
i.e. probe('', {})
and probe(stream, true)
become probe('', {})
and probe(stream, {})
Feel free to close if you think this is not worth the change
Let's keep all as is. Those methods looks similar only at first glance, but are very different by nature. Also, api is battle-tested and stable.
To keep these interfaces consistent, let's make probeStream accept an options object with 'keepOpen' as a property
Fixes #66