()
| 6849 | function bodyMixinMethods(instance, getInternalState) { |
| 6850 | const methods = { |
| 6851 | blob() { |
| 6852 | return consumeBody(this, (bytes) => { |
| 6853 | let mimeType = bodyMimeType(getInternalState(this)); |
| 6854 | if (mimeType === null) { |
| 6855 | mimeType = ""; |
| 6856 | } else if (mimeType) { |
| 6857 | mimeType = serializeAMimeType(mimeType); |
| 6858 | } |
| 6859 | return new Blob([bytes], { type: mimeType }); |
| 6860 | }, instance, getInternalState); |
| 6861 | }, |
| 6862 | arrayBuffer() { |
| 6863 | return consumeBody(this, (bytes) => { |
| 6864 | return new Uint8Array(bytes).buffer; |
no test coverage detected