Sentinel icon indicating copy to clipboard operation
Sentinel copied to clipboard

How to customize parseStrategy of GatewayFlowRule | API 网关自定义限流参数策略怎么做

Open chengpeng2015 opened this issue 3 years ago • 0 comments

hi 我目前在使用1.8.5最新版本的sentinel,我将sentinel和zuul网关结合,在使用限流功能时尝试设置限流策略进行限流,也就是setParseStrategy,我看到sentinel目前支持PARAM_PARSE_STRATEGY_CLIENT_IP,PARAM_PARSE_STRATEGY_HOST,PARAM_PARSE_STRATEGY_HEADER,PARAM_PARSE_STRATEGY_URL_PARAM,PARAM_PARSE_STRATEGY_COOKIE这几种策略,我想自己拓展一种从request.session中获取限流参数的策略,我需要怎么做?

chengpeng2015 avatar Aug 26 '22 02:08 chengpeng2015