Sfoglia il codice sorgente

Add rawResp() method to Fetch replacement

Ben Hsieh 7 anni fa
parent
commit
048c4590db
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4
    0
      src/polyfill/Fetch.js

+ 4
- 0
src/polyfill/Fetch.js Vedi File

@@ -99,6 +99,10 @@ class RNFetchBlobFetchRepsonse {
99 99
     this.rnfbResp = resp
100 100
   }
101 101
 
102
+  rawResp() {
103
+    return Promise.resolve(this.rnfbResp)
104
+  }
105
+
102 106
   arrayBuffer(){
103 107
     log.verbose('to arrayBuffer', this.rnfbRespInfo)
104 108
     this.bodyUsed = true