智能客服
你问我答,随时在线为你解决问题
- typedef struct OH_Http_Interceptor {
- int32_t groupId;
- OH_Interceptor_Stage stage;
- OH_Interceptor_Type type;
- OH_Http_InterceptorHandler handler;
- int32_t enabled;
- } OH_Http_Interceptor;
定义HTTP全局拦截器的配置信息。
起始版本: 24
相关模块: netstack
所在头文件: http_interceptor_type.h
| 名称 | 描述 |
|---|---|
| int32_t groupId | 拦截器组ID。 |
| OH_Interceptor_Stage stage | 拦截器的执行阶段,详情请参考OH_Interceptor_Stage 枚举定义。 |
| OH_Interceptor_Type type | 拦截器的类型,详情请参考OH_Interceptor_Type 枚举定义。 |
| OH_Http_InterceptorHandler handler | 拦截器处理函数,详情请参考OH_Http_InterceptorHandler 函数指针定义。 |
| int32_t enabled | 拦截器的启用状态。0代表未启用,非0代表启用。 |
智能客服
你问我答,随时在线为你解决问题
合作咨询
我们的专家服务团队将竭诚为您提供专业的合作咨询服务
解决方案
精准高效的一站式服务支持,助力开发者商业成功