소스 검색

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