push
gitlab-ci
feat: Implement `http::DownloadResumer` Implement class to download the Artifact, which will react to server disconnections or other sorts of short read by scheduling new HTTP requests with `Range` header. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Range_requests for an introduction to the feature, and read the specification for more details. The user calls _once_ `AsyncCall` with the header and body handlers, and `DownloadResumer` will call back these handlers _once_ (each). The data is passed to the user at operation completion. The validation of the `Content-Range` header and the cases for the unit tests are heavily inspired by the legacy client. See: * https://github.com/mendersoftware/mender/blob/<a class=hub.com/mendersoftware/mender/commit/d9010526d35d3ac861ea1e4210d36c2fef748ef8">d9010526d/client/update_resumer.go#L113 * https://github.com/mendersoftware/mender/blob/d9010526d35d3ac861ea1e4210d36c2fef748ef8/client/update_resumer_test.go#L197 Ticket: MEN-6498 Changelog: None Signed-off-by: Lluis Campos <lluis.campos@northern.tech>
231 of 231 new or added lines in 3 files covered. (100.0%)
5706 of 7215 relevant lines covered (79.09%)
278.95 hits per line