parameters: (self, start, end, base_headers=HEADERS)
return_statement: return self._session.get(self._url, headers=headers, stream=True)
docstring: Return HTTP response to a range request from start to end.
docstring_summary: Return HTTP response to a range request from start to end.
docstring_tokens: Return HTTP response to a range request from start to end .
function: def _stream_response(self, start, end, base_headers=HEADERS):
  
          # type: (int, int, Dict[str, str]) -> Response
  
          """Return HTTP response to a range request from start to end."""
  
          headers = base_headers.copy()
  
          headers['Range'] = f'bytes={start}-{end}'
  
          # TODO: Get range requests to be correctly cached
  
          headers['Cache-Control'] = 'no-cache'
  
          return self._session.get(self._url, headers=headers, stream=True)
function_tokens: def _stream_response ( self , start , end , base_headers = HEADERS ) : # type: (int, int, Dict[str, str]) -> Response headers = base_headers . copy ( ) headers [ 'Range' ] = f'bytes={start}-{end}' # TODO: Get range requests to be correctly cached headers [ 'Cache-Control' ] = 'no-cache' return self . _session . get ( self . _url , headers = headers , stream = True )