fsspec/implementations/http.py
async def _info(self, url, **kwargs):
        """Get info of URL

        Tries to access location via HEAD, and then GET methods, but does
        not fetch the data.

        It is possible that the server does not supply any size information, in
        which case size will be given as None (and certain operations on the
        corresponding file will not work).
        """
        info = {}
        session = await self.set_session()

        for policy in ["head", "get"]:
            try:
                info.update(
                    await _file_info(
                        url,
                        size_policy=policy,
                        session=session,
                        **self.kwargs,
                        **kwargs,
                    )
                )
                if info.get("size") is not None:
                    break
            except Exception as exc:
                if policy == "get":
                    # If get failed, then raise a FileNotFoundError
                    raise FileNotFoundError(url) from exc
                logger.debug(str(exc))

        return {"name": url, "size": None, **info, "type": "file"}
Get info of URL

        Tries to access location via HEAD, and then GET methods, but does
        not fetch the data.

        It is possible that the server does not supply any size information, in
        which case size will be given as None (and certain operations on the
        corresponding file will not work).
        
Get info of URL
Tries to access location via HEAD, and then GET methods, but does
not fetch the data.

It is possible that the server does not supply any size information, in
which case size will be given as None (and certain operations on the
corresponding file will not work).
Get info of URL Tries to access location via HEAD and then GET methods but does not fetch the data . It is possible that the server does not supply any size information in which case size will be given as None ( and certain operations on the corresponding file will not work ) .
async def _info(self, url, **kwargs):
        info = {}
        session = await self.set_session()
        for policy in ["head", "get"]:
            try:
                info.update(
                    await _file_info(
                        url,
                        size_policy=policy,
                        session=session,
                        **self.kwargs,
                        **kwargs,
                    )
                )
                if info.get("size") is not None:
                    break
            except Exception as exc:
                if policy == "get":
                    raise FileNotFoundError(url) from exc
                logger.debug(str(exc))
        return {"name": url, "size": None, **info, "type": "file"}
async def _info ( self , url , ** kwargs ) : info = { } session = await self . set_session ( ) for policy in [ "head" , "get" ] : try : info . update ( await _file_info ( url , size_policy = policy , session = session , ** self . kwargs , ** kwargs , ) ) if info . get ( "size" ) is not None : break except Exception as exc : if policy == "get" : raise FileNotFoundError ( url ) from exc logger . debug ( str ( exc ) ) return { "name" : url , "size" : None , ** info , "type" : "file" }
Get info of URL
Tries to access location via HEAD, and then GET methods, but does
not fetch the data.
Get info of URL Tries to access location via HEAD and then GET methods but does not fetch the data .
"""Get info of URL

        Tries to access location via HEAD, and then GET methods, but does
        not fetch the data.

        It is possible that the server does not supply any size information, in
        which case size will be given as None (and certain operations on the
        corresponding file will not work).
        """ # If get failed, then raise a FileNotFoundError
self
url