RetryAfterPlugin 插件

模拟限制请求后 API 发送的 Retry-After 标头。 当代理在 Retry-After 时间过前检测到对同一 URL 的后续请求时,此插件还会显示警告。

命令提示符的屏幕截图,其中开发人员代理强制失败了在重试期间之前发出的请求。

配置示例

{
  "$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v2.0.0/rc.schema.json",
  "plugins": [
    {
      "name": "RetryAfterPlugin",
      "enabled": true,
      "pluginPath": "~appFolder/plugins/DevProxy.Plugins.dll"
    }
  ]
}

配置属性

没有

命令行选项

没有

后续步骤