You can send trailer "headers" after body. So HTTP is fine. Browser support was not, but may be it's better today.
Those qualifiers were what I was thinking about - in most cases where this is relevant you don’t have the content length in advance, and transfer encoding chunked might not trigger this if the fault aligns with chunks or it’s being done by some middle layer.