Graby\Extractor\HttpClient::possibleUnsupportedType PHP Méthode

possibleUnsupportedType() private méthode

Try to determine if the url is a direct link to a binary resource by checking the extension.
private possibleUnsupportedType ( string $url ) : string | false
$url string Absolute url
Résultat string | false
    private function possibleUnsupportedType($url)
    {
        $ext = strtolower(trim(pathinfo($url, PATHINFO_EXTENSION)));
        if (!$ext) {
            return false;
        }
        return in_array($ext, $this->config['header_only_clues']);
    }