def head(url, **kwargs):
 kwargs.setdefault('headers', dict(useragent_header))
 config = kwargs.pop('config', None)
 if config:
  kwargs.setdefault('verify', _get_tls_cacert(url, config))
 with warnings.catch_warnings():
  if (not kwargs.get('verify')):
   warnings.filterwarnings('ignore', category=InsecureRequestWarning)
  return requests.get(url, **kwargs)

def head ( url , ** kwargs ) : kwargs . setdefault ( 'headers' , dict ( useragent_header ) ) config = kwargs . pop ( 'config' , None ) if config : kwargs . setdefault ( 'verify' , _get_tls_cacert ( url , config ) ) with warnings . catch_warnings ( ) : if ( not kwargs . get ( 'verify' ) ) : warnings . filterwarnings ( 'ignore' , category = InsecureRequestWarning ) return requests . get ( url , ** kwargs )
sends a head request .