As pointed out by this article, using hyper::body::to_bytes blindly might cause DoS attack since the function reserve the Vec based on body.size_hint(), which can be way larger than the actual http response data.
This cannot be fixed by using falliable allocation even it's there since overcommit could be enabled.
IMHO the only way to migrate this is to either remove this function or add a size limit to this function.