在節流要求之後,模擬 API 所傳送的 Retry-After 標頭。 當開發代理在時間結束前 Retry-After 偵測到同一 URL 的後續請求時,外掛會回報該請求,並以另一個 429 Too Many Requests 帶有 Retry-After 標頭的回應失敗該請求。
組態範例
{
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v4.0.0/rc.schema.json",
"plugins": [
{
"name": "RetryAfterPlugin",
"enabled": true,
"pluginPath": "~appFolder/plugins/DevProxy.Plugins.dll"
}
]
}
組態屬性
沒有
命令行選項
沒有