Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

geetpurwar's avatar

Http API Pool Guzzle Options

Hi,

I need to pass additional guzzle options with Laravel HTTP Api Pool class. Please advise.

$guzzleOptions = [
   'debug' => true
];

use Illuminate\Http\Client\Pool;
use Illuminate\Support\Facades\Http;

$responses = Http::pool(fn (Pool $pool) => [
    $pool->get('http://localhost/first'),
    $pool->get('http://localhost/second'),
    $pool->get('http://localhost/third'),
]);

return $responses[0]->ok() &&
       $responses[1]->ok() &&
       $responses[2]->ok();
0 likes
2 replies
bauersfeld's avatar

Did you ever come up with a solution? I have the same need and feel like I must be missing something simple here. Thx

Please or to participate in this conversation.