Mercurial > hg > isophonics-drupal-site
annotate vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 4c8ae668cc8c |
children |
rev | line source |
---|---|
Chris@0 | 1 <?php |
Chris@0 | 2 namespace GuzzleHttp\Handler; |
Chris@0 | 3 |
Chris@0 | 4 use Psr\Http\Message\RequestInterface; |
Chris@0 | 5 |
Chris@0 | 6 interface CurlFactoryInterface |
Chris@0 | 7 { |
Chris@0 | 8 /** |
Chris@0 | 9 * Creates a cURL handle resource. |
Chris@0 | 10 * |
Chris@0 | 11 * @param RequestInterface $request Request |
Chris@0 | 12 * @param array $options Transfer options |
Chris@0 | 13 * |
Chris@0 | 14 * @return EasyHandle |
Chris@0 | 15 * @throws \RuntimeException when an option cannot be applied |
Chris@0 | 16 */ |
Chris@0 | 17 public function create(RequestInterface $request, array $options); |
Chris@0 | 18 |
Chris@0 | 19 /** |
Chris@0 | 20 * Release an easy handle, allowing it to be reused or closed. |
Chris@0 | 21 * |
Chris@0 | 22 * This function must call unset on the easy handle's "handle" property. |
Chris@0 | 23 * |
Chris@0 | 24 * @param EasyHandle $easy |
Chris@0 | 25 */ |
Chris@0 | 26 public function release(EasyHandle $easy); |
Chris@0 | 27 } |