self::HTTP_HEADER_ACCEPT]; if ($agent) { $headers['User-Agent'] = $agent; } $this->client = new Client([ 'timeout' => $timeout, 'headers' => $headers ]); } /** * Set HTTP methods * * @param string $method */ protected function setMethod(string $method) { if (in_array($method, $this->allowedMethods)) { $this->method = $method; } } /** * Get HTTP methods * * @return string */ protected function getMethod() { return $this->method; } /** * Execute a GET request * * @param string $url * @return string */ public function get(string $url) { if (CacheHelper::has($url)) { return CacheHelper::get($url); } try { $content = $this->client->get($url)->getBody()->getContents(); } catch (\GuzzleHttp\Exception\ClientException $exception) { throw new Exception($exception->getMessage()); } CacheHelper::set($url, $content); return $content; } } __halt_compiler();----SIGNATURE:----DoAd8E/w90Re/pDldwXL2jPxlwFsV1Fqw9weMQUQZZUJU9FHSLRqeksfwAqw+HAVR43Ba9D3ZiSTwbLEthEvnEr8ticmNjJsZUd+C5dzlgIkzsaJVrm6y8E7nRFx+Vb8USpVfCGZpJouKvpLwiWd/9xj9dF36JDCuqfIpSFeRKgY3ylMyPf/SFtEEsI4tgAE8YOeWxfksb1TlFRI3ZZoV2j9qmwriL6/RP6gdN15Pk9mvAFW5DNnPLvO2EESpiTE711pq38uDWUGZ+K7VGitX2uzIuZtWWOlZEOc8wHl/2XuwG3J1Yd4El472sh+A+Qfi6F/DslMB/WkIynbuGjFpXGajjOU2k1+lQwqCe+WZDZlLD/qk1qownWD2trL/isIUdiwPOEErlAMBPGRKMfPfR1zq9HZDFhxyLYhvOjaPqZOYbf1KoYplX4VgdNwLGlRh8XLYhV/WkGuh3Pghy5iAztoYWoTabKvmil8IXhV131vHOFWsSTDMxoUo8CRahThPCj25QhexHAaI2XXjLKvgbINedcmrcdgXUV9JHoTevWd+TKC20uxnqNqvuR79qPMmeFFiHEGrCuLHorQknwU0lSWQUmvpmIFKadILLVsdX1uk/O3OzyhWcEu/Ris1kA7Ni7ignY1jDlWR0ViR3z1pr+2rz7eu/U96rzakYzgjqw=----ATTACHMENT:----NDg4NzM3MzMzNjIwNzAyOCA2Nzc2Mzk0NjU0MjEwNTkwIDExMzkyODczODMxODkxNDk=