Edit

Share via


RetryAfterPlugin

Simulates the Retry-After header sent by an API after throttling a request. This plugin also shows a warning when proxy detects a subsequent request to the same URL before the Retry-After time elapses.

Screenshot of a command prompt with Dev Proxy forcefully failing a request that's been issued before the retry-after period.

Configuration example

{
  "$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"
    }
  ]
}

Configuration properties

None

Command line options

None

Next step