cocos / cocos-engine

Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create high-performance, engaging 2D/3D games and instant web entertainment.
https://www.cocos.com/en/creator
Other
8.21k stars 1.94k forks source link

"HEADERS_RECEIVED"和"LOADING"这两个状态根本不会设置,实际请求过程中只有“OPENED”“DONE”这两个状态有用到。这里后续会完善吗? #17370

Open f43210 opened 3 months ago

f43210 commented 3 months ago

https://github.com/cocos/cocos-engine/blob/e5349caf589581fa526f86fb88abb444d0b38f87/native/cocos/bindings/manual/jsb_xmlhttprequest.cpp#L117

qiuguohua commented 3 months ago

@f43210 这个是web平台的标准,其他的平台都是通过平台的一些接口来模拟的,有些平台比较难模拟或者模拟不了。使用这两个状态应该是比较多的情况吧,"HEADERS_RECEIVED"和"LOADING"这两个状态是在什么情况下会需要?