-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support library for returning Dropshot range requests #6963
Merged
Merged
Changes from 7 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
70cb256
Add support library for returning Dropshot range requests
smklein 6b1b556
lockfile and clippy, classic combo
smklein 536117c
And fmt, how could i forget
smklein d175e8c
one more hakari swing
smklein 6aae655
Merge branch 'main' into range-requests
smklein c8421fb
Body checking too
smklein 6f1773e
Merge branch 'main' into range-requests
smklein 9588978
Merge branch 'main' into range-requests
smklein 9bf3f5c
Feedback
smklein c195b03
nonzero
smklein 2c66da4
Merge branch 'main' into range-requests
smklein 6c2562d
Make it harder to see 'not satisfiable' without corresponding headers
smklein File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[package] | ||
name = "range-requests" | ||
description = "Helpers for making and receiving range requests" | ||
version = "0.1.0" | ||
edition = "2021" | ||
license = "MPL-2.0" | ||
|
||
[lints] | ||
workspace = true | ||
|
||
[dependencies] | ||
bytes.workspace = true | ||
dropshot.workspace = true | ||
futures.workspace = true | ||
http.workspace = true | ||
http-range.workspace = true | ||
http-body-util.workspace = true | ||
hyper.workspace = true | ||
thiserror.workspace = true | ||
omicron-workspace-hack.workspace = true | ||
|
||
[dev-dependencies] | ||
http-body.workspace = true | ||
tokio.workspace = true | ||
tokio-util.workspace = true |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity, any particular motivation for including this crate in the
omicron
repo, rather than in thedropshot
repo or in its own repo? It seems general-purpose enough that it might eventually be useful in other projects, and there are no Omicron-specific dependencies beyondomicron-workspace-hack
(which I assume could be dropped if this library lived elsewhere)...There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Totally, I want to leave this door open, but I figured I'd just start locally to iterate quickly. It's already a separate crate, so if we keep the number of dependencies low, it should be easy to move out.
I haven't actually used this much from the client side yet, but I'd like to also validate that half works before exporting it out of Omicron, if that's cool?