📜  laravel http 重试 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:31.575000             🧑  作者: Mango

代码示例1
use Illuminate\Support\Facades\Http;
// The retry method accepts two arguments:
// (1st) the maximum number of times the request should be attempted
// (2nd) the number of milliseconds that Laravel should wait in between attempts:
$response = Http::retry(3, 100)->post(...);