Rework to use iterators. Does not currently function (content-length is being set to 0 regardless of actual length, because it's not actually trying to grab a chunk.)