We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 656d8c8 commit 660363bCopy full SHA for 660363b
src/Component.ts
@@ -79,4 +79,11 @@ export class Component implements Part {
79
result.push(this.body);
80
return Multipart.combineArrays(result);
81
}
82
+
83
+ /**
84
+ * A Blob representation of this component. Headers will be lost.
85
+ */
86
+ public blob(): Blob {
87
+ return new Blob([this.body], {type: this.headers.get("Content-Type") ?? undefined});
88
+ }
89
0 commit comments