We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
一般类似 willRequest 这种前置方法,应该提供一种途径,去操作后续的动作。
willRequest
比如这个方法,我希望回调中有 process 方法中的 context 以及 defer 等 ,然后把 defer 也传进去,用户可以决定 defer 是否需要发送请求。
process
context
defer
requestData
cacheData
resolve(data)
The text was updated successfully, but these errors were encountered:
接受,willRequest和didRequire配置将改为通过request配置实现,request接受config, data和defer为参数。
didRequire
request
config
data
Sorry, something went wrong.
No branches or pull requests
一般类似
willRequest
这种前置方法,应该提供一种途径,去操作后续的动作。比如这个方法,我希望回调中有
process
方法中的context
以及defer
等 ,然后把 defer 也传进去,用户可以决定defer
是否需要发送请求。使用场景
requestData
的 sha1 值,获取存在本地的cacheData
see 希望加入 cache 功能 #13 ,如果有的话,直接resolve(data)
,跟process
方法配合,用来做离线相当棒。The text was updated successfully, but these errors were encountered: