Yii2 Change Transport

[Solved] Yii2 Change Transport | Php Frameworks Yii - Code Explorer | yomemimo.com
Question : yii2 change transport

Answered by : bahriddin

use yii\httpclient\Client;
$client = new Client([ 'transport' => 'yii\httpclient\CurlTransport'
]);

Source : https://www.yiiframework.com/extension/yiisoft/yii2-httpclient/doc/guide/2.0/en/usage-transports | Last Update : Fri, 15 Oct 21

Answers related to yii2 change transport

Code Explorer Popular Question For Php Frameworks Yii