fetch implementation does not support streams from the spec - needs implementation in React Native core
还没有人认领这个 Issue。
- 主要语言
- C++
- 星标
- 127k
- 派生
- 25.3k
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 4
描述
React Native has not implemented fetch on top of native APIs, and the fetch polyfill built on top of XHR does not support streams where response.body is a getter for a ReadableStream.
React Native version:
0.61.4
Steps To Reproduce
Use fetch and see that response.body is undefined rather than a getter for a ReadableStream according the the fetch spec.
Describe what you expected to happen:
I expected for response.body to be defined.
Related issues
https://github.com/facebook/react-native/issues/9629
https://github.com/facebook/react-native/issues/12912
https://github.com/github/fetch/issues/746#issuecomment-573251497 (cc @MattiasBuelens)
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先定位 fetch polyfill 及其基于 XHR 的响应处理,然后将 response.body 与 Fetch 规范以及相关 issue #9629 和 #12912 进行比较。完成标准是 fetch 响应以 ReadableStream 的形式暴露 response.body,并为报告的行为提供覆盖。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- react-native
- 领域
- mobile
- Issue 类型
- 缺陷
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 冷清
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100