1 | <?php |
||
20 | class MetarHTTPClient |
||
21 | { |
||
22 | |||
23 | /** |
||
24 | * Optional Guzzle Client configuration. |
||
25 | * @var array |
||
26 | */ |
||
27 | protected $guzzle_conf; |
||
28 | |||
29 | /** |
||
30 | * HTTP Client |
||
31 | * @param array $config Optional Guzzle configuration. |
||
32 | */ |
||
33 | public function __construct($config = []) |
||
37 | |||
38 | /** |
||
39 | * Make a HTTP request and retrieve the body. |
||
40 | * @param string $url The URL to request |
||
41 | * @return string |
||
42 | * @throws Exception |
||
43 | */ |
||
44 | public function getMetarAPIResponse($url) |
||
53 | } |
||
54 |