8000 [Feature Request] cacel、请求重试 · Issue #250 · AttoJS/vue-request · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
8000 Skip to content
[Feature Request] cacel、请求重试 #250
Open
@Capyhw

Description

@Capyhw

需求描述 Feature Description

cacel为什么不真正的取消请求呢,这对于一些post 接口很有帮助,比如每次post之前cacel,避免请求竟态,以及cacel是否能够停止正在请求重试的需求,这部分是否可以在文档中明确
请求重试过程中,报错会进到error吗,如果达到最大重试次数,我想做和重试过充中的报错不同的操作,如果都进onerror,我似乎没办法做到

建议的解决方案 Proposed Solution

1.希望cacel可以真正的取消请求
2.cacel可以停止重试或者加个stop的函数用于此
3.请求重试添加onfinally的回调,用于重试次数用完

其他信息 Other information

期待作者更新,感谢

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0