WP_AI_Client_HTTP_Client::__construct
Constructor.
Method of the class: WP_AI_Client_HTTP_Client{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WP_AI_Client_HTTP_Client = new WP_AI_Client_HTTP_Client(); $WP_AI_Client_HTTP_Client->__construct( $response_factory, $stream_factory );
- $response_factory(ResponseFactoryInterface) (required)
- PSR-17 Response factory.
- $stream_factory(StreamFactoryInterface) (required)
- PSR-17 Stream factory.
Changelog
| Since 7.0.0 | Introduced. |
WP_AI_Client_HTTP_Client::__construct() WP AI Client HTTP Client:: construct code WP 7.0
public function __construct( ResponseFactoryInterface $response_factory, StreamFactoryInterface $stream_factory ) {
$this->response_factory = $response_factory;
$this->stream_factory = $stream_factory;
}