def METHOD_NAME(self, chunk_size=_DEFAULT_CHUNK_SIZE, keepends=False):
    """Return an iterator to yield lines from the raw stream.
    This is achieved by reading chunk of bytes (of size chunk_size) at a
    time from the raw stream, and then yielding lines from there.
    """
    pending = b''
    for chunk in self.iter_chunks(chunk_size):
        lines = (pending + chunk).splitlines(True)
        for line in lines[:-1]:
            yield line.splitlines(keepends)[0]
        pending = lines[-1]
    if pending:
        yield pending.splitlines(keepends)[0]