Editare

RetryAfterPlugin

Simulates the Retry-After header sent by an API after throttling a request. When Dev Proxy detects a subsequent request to the same URL before the Retry-After time elapses, the plugin reports it and fails the request with another 429 Too Many Requests response with a Retry-After header.

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/v3.3.1/rc.schema.json",
  "plugins": [
    {
      "name": "RetryAfterPlugin",
      "enabled": true,
      "pluginPath": "~appFolder/plugins/DevProxy.Plugins.dll"
    }
  ]
}

Configuration properties

None

Command line options

None

Next step