@contextmanager<EOL><INDENT>def open(self, session=None):<DEDENT>
self.__kwargs.update(stream=True)<EOL>session = session or requests<EOL>resp = session.request(self.__method, self.__url, **self.__kwargs)<EOL>try:<EOL><INDENT>yield resp<EOL><DEDENT>finally:<EOL><INDENT>resp.close()<EOL><DEDENT>
:param requests.Session session:
  Optional requests session


:return:
  file-like object over the decoded bytes