diff options
Diffstat (limited to 'node_modules/snekfetch/src/node/transports/ResponseStream.js')
| -rw-r--r-- | node_modules/snekfetch/src/node/transports/ResponseStream.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/node_modules/snekfetch/src/node/transports/ResponseStream.js b/node_modules/snekfetch/src/node/transports/ResponseStream.js deleted file mode 100644 index 1d40101..0000000 --- a/node_modules/snekfetch/src/node/transports/ResponseStream.js +++ /dev/null @@ -1,24 +0,0 @@ -const Stream = require('stream'); - -class ResponseStream extends Stream.Readable { - constructor() { - super(); - this.statusCode = 200; - this.status = 'OK'; - } - - error(code, message) { - this.statusCode = code; - this.status = message; - return this; - } - - on(event, handler) { - if (['end', 'open'].includes(event)) - handler(); - } - - _read() {} // eslint-disable-line no-empty-function -} - -module.exports = ResponseStream; |