method

set_content_length!

set_content_length!()
private

Don’t set the Content-Length for block-based bodies as that would mean reading it all into memory. Not nice for, say, a 2GB streaming file.