requests.Response.iter_lines

Response.iter_lines(chunk_size=512, decode_unicode=None, delimiter=None)[source]

Iterates over the response data, one line at a time. When stream=True is set on the request, this avoids reading the content at once into memory for large responses.

Note

This method is not reentrant safe.