nopolabs/react-aware-guzzle-client

一个实现了 GuzzleHttp\Handler\CurlFactoryInterface 并与 React 兼容的版本

dev-master 2019-07-12 18:34 UTC

This package is auto-updated.

Last update: 2024-09-13 05:59:34 UTC


README

Build Status Code Climate Scrutinizer Code Quality License Latest Stable Version

一个实现了 GuzzleHttp\Handler\CurlFactoryInterface 并与 React 兼容的版本。

public function newClient(
        LoopInterface $eventLoop,
        array $config = [],
        CurlFactory $curlFactory = null,
        LoggerInterface $logger = null) : Client
{
    $clientFactory = new ReactAwareGuzzleClientFactory();
    return $clientFactory->createGuzzleClient($eventLoop, $config, $curlFactory, $logger);
}