laravel / lumen-framework

The Laravel Lumen Framework.
https://lumen.laravel.com
MIT License
1.47k stars 418 forks source link

Http::baseUrl not working for pool requests #1191

Closed MohammadZarifiyan closed 3 years ago

MohammadZarifiyan commented 3 years ago

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 3 years ago

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.