@iap Packages
System
Light
Dark
Search…
Preparing search index...
@iap/http
RequestInterceptor
Type Alias RequestInterceptor
RequestInterceptor
:
(
config
:
HttpConfig
)
=>
HttpConfig
|
Promise
<
HttpConfig
>
请求拦截器,在发送前修改 method / headers / body
Type Declaration
(
config
:
HttpConfig
)
:
HttpConfig
|
Promise
<
HttpConfig
>
Parameters
config
:
HttpConfig
原始请求配置
Returns
HttpConfig
|
Promise
<
HttpConfig
>
修改后的配置(可为 Promise)
@iap Packages
Loading...
请求拦截器,在发送前修改 method / headers / body