MCPcopy Create free account
hub / github.com/CoderOpen/waimai / validateStatus

Method validateStatus

front/utils/luch-request/core/Request.js:82–84  ·  view source on GitHub ↗

* 自定义验证器,如果返回true 则进入响应拦截器的响应成功函数(resolve),否则进入响应拦截器的响应错误函数(reject) * @param { Number } statusCode - 请求响应体statusCode(只读) * @return { Boolean } 如果为true,则 resolve, 否则 reject

(statusCode)

Source from the content-addressed store, hash-verified

80 * @return { Boolean } 如果为true,则 resolve, 否则 reject
81 */
82 validateStatus(statusCode) {
83 return statusCode === 200
84 }
85
86 /**
87 * @Function

Callers 3

requestMethod · 0.95
uploadMethod · 0.95
downloadMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected