# plausible-analytics/trunk/src/Client/lib/Lib/GuzzleHttp/Handler/CurlFactoryInterface.php

Plausible Analytics, version trunk. 26 lines.

- Page: https://pluginprobe.com/plugins/plausible-analytics/trunk/code/src/Client/lib/Lib/GuzzleHttp/Handler/CurlFactoryInterface.php
- Raw: https://pluginprobe.com/plugins/plausible-analytics/trunk/raw/src/Client/lib/Lib/GuzzleHttp/Handler/CurlFactoryInterface.php
- Modified: 2024-02-06T09:14:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/plausible-analytics/trunk/code/src/Client/lib/Lib/GuzzleHttp/Handler/CurlFactoryInterface.php#L10-L20`.

```php
<?php

namespace Plausible\Analytics\WP\Client\Lib\GuzzleHttp\Handler;

use Plausible\Analytics\WP\Client\Lib\Psr\Http\Message\RequestInterface;

interface CurlFactoryInterface
{
    /**
     * Creates a cURL handle resource.
     *
     * @param RequestInterface $request Request
     * @param array            $options Transfer options
     *
     * @throws \RuntimeException when an option cannot be applied
     */
    public function create(RequestInterface $request, array $options): EasyHandle;

    /**
     * Release an easy handle, allowing it to be reused or closed.
     *
     * This function must call unset on the easy handle's "handle" property.
     */
    public function release(EasyHandle $easy): void;
}

```
