WordPress\AiClient\Providers\Http
HttpTransporter::__construct
Constructor.
Метод класса: HttpTransporter{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$HttpTransporter = new HttpTransporter(); $HttpTransporter->__construct( ?ClientInterface $client, ?RequestFactoryInterface $requestFactory, ?StreamFactoryInterface $streamFactory );
- ?ClientInterface $client
- .
По умолчанию:null - ?RequestFactoryInterface $requestFactory
- .
По умолчанию:null - ?StreamFactoryInterface $streamFactory
- .
По умолчанию:null
Список изменений
| С версии 0.1.0 | Введена. |
Код HttpTransporter::__construct() HttpTransporter:: construct WP 7.1.2
public function __construct(?ClientInterface $client = null, ?RequestFactoryInterface $requestFactory = null, ?StreamFactoryInterface $streamFactory = null)
{
$this->client = $client ?: Psr18ClientDiscovery::find();
$this->requestFactory = $requestFactory ?: Psr17FactoryDiscovery::findRequestFactory();
$this->streamFactory = $streamFactory ?: Psr17FactoryDiscovery::findStreamFactory();
}