Class: RequestInterceptor

RequestInterceptor

new RequestInterceptor(options)

service/RequestInterceptor.js, line 3

请求拦截器对象

Name Type Description
options Object

构造参数

Name Type Default Description
before(config) function 可选

请求发送前会执行的函数

failure(error) function 可选

请求发送失败会执行的函数

Members

beforeString

请求发送前会执行的函数

failureString

请求发送失败会执行的函数