Solicitud de codificación de bloque Python
def gen():
yield 'hi'
yield 'there'
requests.post('http://some.url/chunked', data=gen())
Puzzled Puffin
def gen():
yield 'hi'
yield 'there'
requests.post('http://some.url/chunked', data=gen())