HttpLogEnabledPredicate typedef

HttpLogEnabledPredicate = bool Function()

控制台网络日志动态开关。

未配置时,enableLogtrue 即始终记录;项目可注入运行时开关,避免关闭 网络调试后仍格式化请求和响应大对象。

Implementation

typedef HttpLogEnabledPredicate = bool Function();