rust-tuf
rust-tuf copied to clipboard
HttpRepository can bail out early in some cases
If a request for metadata or target contains a max length and the HTTP response contains a Content-Length greater than that value, it can error out the AsyncRead stream without having to read the entire payload over the network first.