get rid of blob

This commit is contained in:
Randall Schmidt
2021-06-12 15:43:35 -04:00
parent 3d7b27ceb5
commit 34c8887e51
5 changed files with 28 additions and 155 deletions

View File

@ -1,5 +1,4 @@
const stream = require('stream');
const Blob = require('./blob.js');
const Headers = require('./headers.js');
class Response {
@ -40,11 +39,6 @@ class Response {
return this.consumeBody();
}
async blob() {
const type = this.headers.get('content-type');
return new Blob([this.consumeBody()], { type });
}
ejectFromCache() {
return this.ejectSelfFromCache();
}