Http::baseUrl not working for pool requests
MohammadZarifiyan opened this issue · 1 comments
MohammadZarifiyan commented
- PHP Version: 8.0
Description:
Http baseUrl has no effecc
Steps To Reproduce:
use Illuminate\Http\Client\Pool;
use Illuminate\Support\Facades\Http;
public function sendRequest(){
return Http::baseUrl('http://example.com')->pool(fn (Pool $pool) => $this->createRequestPool($pool));
}
public function createRequestPool(Pool $pool): array {
// returns some array of pool requests like this:
// [
// $pool->get('first'),
// $pool->get('second'),
// $pool->get('third'),
// ]
}
Outgoing requests:
http://first
http://second
http://third
Expected outgoing requests:
http://example.com/first
http://example.com/second
http://example.com/third
driesvints commented
Hi there,
Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:
However, this issue will not be locked and everyone is still free to discuss solutions to your problem!
Thanks.