fsspec/implementations/http.py
def _open(
        self,
        path,
        mode="rb",
        block_size=None,
        autocommit=None,  # XXX: This differs from the base class.
        cache_type=None,
        cache_options=None,
        size=None,
        **kwargs,
    ):
        """Make a file-like object

        Parameters
        ----------
        path: str
            Full URL with protocol
        mode: string
            must be "rb"
        block_size: int or None
            Bytes to download in one request; use instance value if None. If
            zero, will return a streaming Requests file-like instance.
        kwargs: key-value
            Any other parameters, passed to requests calls
        """
        if mode != "rb":
            raise NotImplementedError
        block_size = block_size if block_size is not None else self.block_size
        kw = self.kwargs.copy()
        kw["asynchronous"] = self.asynchronous
        kw.update(kwargs)
        size = size or self.info(path, **kwargs)["size"]
        session = sync(self.loop, self.set_session)
        if block_size and size:
            return HTTPFile(
                self,
                path,
                session=session,
                block_size=block_size,
                mode=mode,
                size=size,
                cache_type=cache_type or self.cache_type,
                cache_options=cache_options or self.cache_options,
                loop=self.loop,
                **kw,
            )
        else:
            return HTTPStreamFile(
                self, path, mode=mode, loop=self.loop, session=session, **kw
            )
Make a file-like object

        Parameters
        ----------
        path: str
            Full URL with protocol
        mode: string
            must be "rb"
        block_size: int or None
            Bytes to download in one request; use instance value if None. If
            zero, will return a streaming Requests file-like instance.
        kwargs: key-value
            Any other parameters, passed to requests calls
        
Make a file-like object
Parameters

str
Full URL with protocol
mode: string
must be "rb"
block_size: int or None
Bytes to download in one request; use instance value if None. If
zero, will return a streaming Requests file-like instance.
kwargs: key-value
Any other parameters, passed to requests calls
Make a file - like object Parameters str Full URL with protocol mode : string must be " rb " block_size : int or None Bytes to download in one request ; use instance value if None . If zero will return a streaming Requests file - like instance . kwargs : key - value Any other parameters passed to requests calls
def _open(
        self,
        path,
        mode="rb",
        block_size=None,
        autocommit=None,  
        cache_type=None,
        cache_options=None,
        size=None,
        **kwargs,
    ):
        if mode != "rb":
            raise NotImplementedError
        block_size = block_size if block_size is not None else self.block_size
        kw = self.kwargs.copy()
        kw["asynchronous"] = self.asynchronous
        kw.update(kwargs)
        size = size or self.info(path, **kwargs)["size"]
        session = sync(self.loop, self.set_session)
        if block_size and size:
            return HTTPFile(
                self,
                path,
                session=session,
                block_size=block_size,
                mode=mode,
                size=size,
                cache_type=cache_type or self.cache_type,
                cache_options=cache_options or self.cache_options,
                loop=self.loop,
                **kw,
            )
        else:
            return HTTPStreamFile(
                self, path, mode=mode, loop=self.loop, session=session, **kw
            )
def _open ( self , path , mode = "rb" , block_size = None , autocommit = None , cache_type = None , cache_options = None , size = None , ** kwargs , ) : if mode != "rb" : raise NotImplementedError block_size = block_size if block_size is not None else self . block_size kw = self . kwargs . copy ( ) kw [ "asynchronous" ] = self . asynchronous kw . update ( kwargs ) size = size or self . info ( path , ** kwargs ) [ "size" ] session = sync ( self . loop , self . set_session ) if block_size and size : return HTTPFile ( self , path , session = session , block_size = block_size , mode = mode , size = size , cache_type = cache_type or self . cache_type , cache_options = cache_options or self . cache_options , loop = self . loop , ** kw , ) else : return HTTPStreamFile ( self , path , mode = mode , loop = self . loop , session = session , ** kw )
Make a file-like object
Parameters
Make a file - like object Parameters
# XXX: This differs from the base class. """Make a file-like object

        Parameters
        ----------
        path: str
            Full URL with protocol
        mode: string
            must be "rb"
        block_size: int or None
            Bytes to download in one request; use instance value if None. If
            zero, will return a streaming Requests file-like instance.
        kwargs: key-value
            Any other parameters, passed to requests calls
        """
self
path
mode
block_size
autocommit
cache_type
cache_options
size