diff options
author | 2023-04-21 01:04:55 -0700 | |
---|---|---|
committer | 2023-04-21 01:04:55 -0700 | |
commit | b98f90fc6ec3b4a68cd2135d631f74e50a79dceb (patch) | |
tree | 001a4940432f2ccf0bac8f8969b26786130b825f /src/bun.js/webcore/blob.zig | |
parent | 281b81066431824d6902a915a41721ae413bcfd7 (diff) | |
download | bun-b98f90fc6ec3b4a68cd2135d631f74e50a79dceb.tar.gz bun-b98f90fc6ec3b4a68cd2135d631f74e50a79dceb.tar.zst bun-b98f90fc6ec3b4a68cd2135d631f74e50a79dceb.zip |
`Bun.build()` partial implementation
Diffstat (limited to 'src/bun.js/webcore/blob.zig')
-rw-r--r-- | src/bun.js/webcore/blob.zig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bun.js/webcore/blob.zig b/src/bun.js/webcore/blob.zig index a3650755f..4ac48f25f 100644 --- a/src/bun.js/webcore/blob.zig +++ b/src/bun.js/webcore/blob.zig @@ -2518,6 +2518,14 @@ pub const Blob = struct { return blob_.toJS(globalThis); } + pub fn getMimeType(this: *const Blob) ?bun.HTTP.MimeType { + if (this.store) |store| { + return store.mime_type; + } + + return null; + } + pub fn getType( this: *Blob, globalThis: *JSC.JSGlobalObject, |