2 namespace GuzzleHttp\Handler;
4 use Psr\Http\Message\RequestInterface;
6 interface CurlFactoryInterface
9 * Creates a cURL handle resource.
11 * @param RequestInterface $request Request
12 * @param array $options Transfer options
15 * @throws \RuntimeException when an option cannot be applied
17 public function create(RequestInterface $request, array $options);
20 * Release an easy handle, allowing it to be reused or closed.
22 * This function must call unset on the easy handle's "handle" property.
24 * @param EasyHandle $easy
26 public function release(EasyHandle $easy);