Skip to content
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

commonize HTTP/HTTPS paths and use more structured errors internally #1121

Merged
merged 4 commits into from
Sep 27, 2024

Conversation

davepacheco
Copy link
Collaborator

Pulling this out of #1120. I wound up doing this first, even though it's less urgent, because doing the builder interface wants the more structured errors and that would have to be done in two code paths instead of one.

dropshot/src/server.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@ahl ahl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems uncontroversially good? I don't think I have anything useful to add.

NotOnePrivateKey,
#[error("must register an API")]
MissingApi,
#[error("only one API can be registered with a server")]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will be fun to remove!

@davepacheco davepacheco marked this pull request as ready for review September 27, 2024 20:01
@davepacheco davepacheco merged commit 4e26838 into main Sep 27, 2024
10 checks passed
@davepacheco davepacheco deleted the dap/commonize-only branch September 27, 2024 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants