-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
当前natty-fetch的数据处理仅支持同步方式。
在使用中由于服务器端启用的一些防护措施需要进行异步地数据校验和处理。并且本次异步处理后才会返回真实的响应。
考虑在此处提交pr增加异步的支持方式,请看下是否支持这样做。
const content = config.process(response.content, vars)
if (content.then && typeof content.then === 'function') { // 返回 thenable
content.then(c => this.onSuccess(c))
} else {
this.onSuccess(content)
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels