Closed abacaphiliac closed 6 years ago
http.IncomingMessage extends stream.Readable extends NodeJS.ReadableStream extends NodeJS.EventEmitter.
http.IncomingMessage
stream.Readable
NodeJS.ReadableStream
NodeJS.EventEmitter
a mock request that implements stream.Readable (which is-a events.EventEmitter) gets us a little closer to http.IncomingMessage than events.EventEmitter alone.
events.EventEmitter
is there a downside to this approach?
@abacaphiliac thanks for your PR
http.IncomingMessage
extendsstream.Readable
extendsNodeJS.ReadableStream
extendsNodeJS.EventEmitter
.a mock request that implements
stream.Readable
(which is-aevents.EventEmitter
) gets us a little closer tohttp.IncomingMessage
thanevents.EventEmitter
alone.is there a downside to this approach?