()
| 5791 | function bodyMixinMethods(instance) { |
| 5792 | const methods = { |
| 5793 | blob() { |
| 5794 | return consumeBody(this, (bytes) => { |
| 5795 | let mimeType = bodyMimeType(this); |
| 5796 | if (mimeType === null) { |
| 5797 | mimeType = ""; |
| 5798 | } else if (mimeType) { |
| 5799 | mimeType = serializeAMimeType(mimeType); |
| 5800 | } |
| 5801 | return new Blob2([bytes], { type: mimeType }); |
| 5802 | }, instance); |
| 5803 | }, |
| 5804 | arrayBuffer() { |
| 5805 | return consumeBody(this, (bytes) => { |
| 5806 | return new Uint8Array(bytes).buffer; |
nothing calls this directly
no test coverage detected