-
Notifications
You must be signed in to change notification settings - Fork 76
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
Allow handlers to return user-defined error types #1180
Merged
Merged
Commits on Nov 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for af226ea - Browse repository at this point
Copy the full SHA af226eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d7c3e4 - Browse repository at this point
Copy the full SHA 4d7c3e4View commit details
Commits on Nov 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5bd7e3d - Browse repository at this point
Copy the full SHA 5bd7e3dView commit details
Commits on Nov 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2eff88a - Browse repository at this point
Copy the full SHA 2eff88aView commit details -
Configuration menu - View commit details
-
Copy full SHA for f2c7f5f - Browse repository at this point
Copy the full SHA f2c7f5fView commit details
Commits on Nov 20, 2024
-
use a refined type for error status
Enforce that `HttpResponseError`s status codes are 4xx or 5xx using an `ErrorStatusCode` type which may only be those statuses. See: #39 (comment) While we're making breaking API changes, let's also have `HttpError::for_status` take a validated client-error-only type, rather than panicking surprisingly. This way, it's obvious to the user that the argument to this has to be a 4xx. Fixes #693
Configuration menu - View commit details
-
Copy full SHA for 8da1c05 - Browse repository at this point
Copy the full SHA 8da1c05View commit details -
Configuration menu - View commit details
-
Copy full SHA for 86b3afb - Browse repository at this point
Copy the full SHA 86b3afbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f611bf - Browse repository at this point
Copy the full SHA 1f611bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 90e7247 - Browse repository at this point
Copy the full SHA 90e7247View commit details -
Configuration menu - View commit details
-
Copy full SHA for 06a1af3 - Browse repository at this point
Copy the full SHA 06a1af3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6de6de3 - Browse repository at this point
Copy the full SHA 6de6de3View commit details -
Configuration menu - View commit details
-
Copy full SHA for cc4a2b9 - Browse repository at this point
Copy the full SHA cc4a2b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for c513c46 - Browse repository at this point
Copy the full SHA c513c46View commit details -
Configuration menu - View commit details
-
Copy full SHA for cfc582b - Browse repository at this point
Copy the full SHA cfc582bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d0575c - Browse repository at this point
Copy the full SHA 3d0575cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b4b6d4 - Browse repository at this point
Copy the full SHA 6b4b6d4View commit details
Commits on Nov 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5f374b8 - Browse repository at this point
Copy the full SHA 5f374b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 53ed323 - Browse repository at this point
Copy the full SHA 53ed323View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab798a9 - Browse repository at this point
Copy the full SHA ab798a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for e87ad82 - Browse repository at this point
Copy the full SHA e87ad82View commit details -
Apply docs suggestions from @ahl
Co-authored-by: Adam Leventhal <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6c9c824 - Browse repository at this point
Copy the full SHA 6c9c824View commit details -
Configuration menu - View commit details
-
Copy full SHA for 10a4a99 - Browse repository at this point
Copy the full SHA 10a4a99View commit details -
Configuration menu - View commit details
-
Copy full SHA for b9f194c - Browse repository at this point
Copy the full SHA b9f194cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 576ba5f - Browse repository at this point
Copy the full SHA 576ba5fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a4d52f - Browse repository at this point
Copy the full SHA 8a4d52fView commit details -
Configuration menu - View commit details
-
Copy full SHA for f9642d1 - Browse repository at this point
Copy the full SHA f9642d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f6d70e - Browse repository at this point
Copy the full SHA 8f6d70eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ccbbbe2 - Browse repository at this point
Copy the full SHA ccbbbe2View commit details
Commits on Nov 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 46b4df1 - Browse repository at this point
Copy the full SHA 46b4df1View commit details -
convert
HttpError
s into endpoint's error typeSee #1180 (comment) This does mean we can no longer have infallible endpoint handlers, but I never actually wanted that in the first place --- it's just a side benefit.
Configuration menu - View commit details
-
Copy full SHA for 00bcea7 - Browse repository at this point
Copy the full SHA 00bcea7View commit details -
Configuration menu - View commit details
-
Copy full SHA for a6c3472 - Browse repository at this point
Copy the full SHA a6c3472View commit details
Commits on Nov 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 4c93e2e - Browse repository at this point
Copy the full SHA 4c93e2eView commit details
Commits on Nov 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a0e71bf - Browse repository at this point
Copy the full SHA a0e71bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a15443 - Browse repository at this point
Copy the full SHA 9a15443View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c8d898 - Browse repository at this point
Copy the full SHA 9c8d898View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b7cdea - Browse repository at this point
Copy the full SHA 2b7cdeaView commit details -
Update dropshot/src/handler.rs
Co-authored-by: Adam Leventhal <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a3ee555 - Browse repository at this point
Copy the full SHA a3ee555View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d99131 - Browse repository at this point
Copy the full SHA 9d99131View commit details
Commits on Nov 28, 2024
-
Co-authored-by: David Pacheco <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5239d17 - Browse repository at this point
Copy the full SHA 5239d17View commit details -
Co-authored-by: David Pacheco <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a3497ea - Browse repository at this point
Copy the full SHA a3497eaView commit details
Commits on Dec 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ab1d903 - Browse repository at this point
Copy the full SHA ab1d903View commit details -
Configuration menu - View commit details
-
Copy full SHA for ea5c9ef - Browse repository at this point
Copy the full SHA ea5c9efView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5bf8aa2 - Browse repository at this point
Copy the full SHA 5bf8aa2View commit details -
Configuration menu - View commit details
-
Copy full SHA for f315724 - Browse repository at this point
Copy the full SHA f315724View commit details -
Configuration menu - View commit details
-
Copy full SHA for ba5c5b3 - Browse repository at this point
Copy the full SHA ba5c5b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 84bca39 - Browse repository at this point
Copy the full SHA 84bca39View commit details -
Configuration menu - View commit details
-
Copy full SHA for b017d57 - Browse repository at this point
Copy the full SHA b017d57View commit details -
Configuration menu - View commit details
-
Copy full SHA for 72d0ced - Browse repository at this point
Copy the full SHA 72d0cedView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ad3bb4 - Browse repository at this point
Copy the full SHA 6ad3bb4View commit details -
Configuration menu - View commit details
-
Copy full SHA for d189d61 - Browse repository at this point
Copy the full SHA d189d61View commit details -
Configuration menu - View commit details
-
Copy full SHA for 71dc879 - Browse repository at this point
Copy the full SHA 71dc879View commit details -
Configuration menu - View commit details
-
Copy full SHA for cab73b6 - Browse repository at this point
Copy the full SHA cab73b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for c86d368 - Browse repository at this point
Copy the full SHA c86d368View commit details
Commits on Dec 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for de6933c - Browse repository at this point
Copy the full SHA de6933cView commit details -
Configuration menu - View commit details
-
Copy full SHA for c6f533d - Browse repository at this point
Copy the full SHA c6f533dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a0e990 - Browse repository at this point
Copy the full SHA 6a0e990View commit details -
Configuration menu - View commit details
-
Copy full SHA for f0e6a46 - Browse repository at this point
Copy the full SHA f0e6a46View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d6bff3 - Browse repository at this point
Copy the full SHA 6d6bff3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b648f1 - Browse repository at this point
Copy the full SHA 8b648f1View commit details
Commits on Dec 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 75cbc09 - Browse repository at this point
Copy the full SHA 75cbc09View commit details -
Configuration menu - View commit details
-
Copy full SHA for ba0f62a - Browse repository at this point
Copy the full SHA ba0f62aView commit details
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.