Brak opisu

CurlFactoryInterface.php 702B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace GuzzleHttp\Handler;
  3. use Psr\Http\Message\RequestInterface;
  4. interface CurlFactoryInterface
  5. {
  6. /**
  7. * Creates a cURL handle resource.
  8. *
  9. * @param RequestInterface $request Request
  10. * @param array $options Transfer options
  11. *
  12. * @return EasyHandle
  13. * @throws \RuntimeException when an option cannot be applied
  14. */
  15. public function create(RequestInterface $request, array $options);
  16. /**
  17. * Release an easy handle, allowing it to be reused or closed.
  18. *
  19. * This function must call unset on the easy handle's "handle" property.
  20. *
  21. * @param EasyHandle $easy
  22. */
  23. public function release(EasyHandle $easy);
  24. }