mirror of
https://github.com/Wessel/wumpfetch.git
synced 2026-06-08 22:18:18 +02:00
Add WumpResponse#buffer
- Added a buffer function - Add `WumpRequest#buffer` in typings
This commit is contained in:
@@ -11,6 +11,10 @@ module.exports = class WumpResponse {
|
||||
this.body = Buffer.concat([ this.body, chunk ]);
|
||||
}
|
||||
|
||||
buffer () {
|
||||
return this.body;
|
||||
}
|
||||
|
||||
text () {
|
||||
return this.body.toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user