Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds support for creating HTTP requests and parsing HTTP responses for an HTTP sparse index via the
http
crate. This method follows the sans-io approach to allow the calling crate to decide what HTTP client it wants to use to send HTTP requests so that this crate is not tied to any particular HTTP client implementation, nor does it have to care if the user wants async or not I/O or whatever else.This is behind the
sparse-http
feature gate but that can be removed if the feature is deemed acceptable by default since it is fairly lightweight, especially when compared to git.This implementation leaves it up to the user to decompress gzip encoded server responses, but gzip decompression would be easy to add either behind an additional feature flag, or as part of the
sparse-http
feature.Resolves: #87