| 1 | <?php |
||
| 14 | abstract class Http |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Instantiate and return an HTTP client |
||
| 18 | * |
||
| 19 | * @return Http\Client |
||
| 20 | */ |
||
| 21 | 2 | public static function getClient() |
|
| 25 | /** |
||
| 26 | * Instantiate and return a caching HTTP client |
||
| 27 | * |
||
| 28 | * @param string $cacheDir |
||
| 29 | * @return Cached |
||
| 30 | */ |
||
| 31 | 1 | public static function getCachingClient($cacheDir = null) |
|
| 38 | } |