openharmony 鸿蒙 capi-netstack-http-interceptor

2026-08-25 浏览 (1)

OH_Http_Interceptor

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代表启用。

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-netconnection-netconn-connectionproperties

openharmony 鸿蒙 errorcode-net-mdns

openharmony 鸿蒙 js-apis-net-ethernet-sys

openharmony 鸿蒙 errorcode-net-http

openharmony 鸿蒙 capi-netstack-http-proxy

openharmony 鸿蒙 js-apis-system-fetch

openharmony 鸿蒙 errorcode-kernel

openharmony 鸿蒙 capi-netstack-netstack-certblob

openharmony 鸿蒙 js-apis-net-mdns

openharmony 鸿蒙 capi-netstack-websocket-closeoption

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/RrqJns4Y