浏览代码

Add rawResp() method to Fetch replacement

Ben Hsieh 8 年前
父节点
当前提交
048c4590db
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      src/polyfill/Fetch.js

+ 4
- 0
src/polyfill/Fetch.js 查看文件

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