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;

Overview

Defines a struct for the configuration information of the global HTTP interceptor.

Since: 24

Related module: netstack

Header file: http_interceptor_type.h

Summary

Member Variables

Name Description
int32_t groupId Interceptor group ID.
OH_Interceptor_Stage stage Execution stage of the interceptor. For details, see OH_Interceptor_Stage.
OH_Interceptor_Type type Interceptor type. For details, see OH_Interceptor_Type.
OH_Http_InterceptorHandler handler Interceptor handler. For details, see OH_Http_InterceptorHandler.
int32_t enabled Enabling status of the interceptor. The value 0 indicates that the interceptor is disabled, and a non-zero value indicates the opposite.