Skip to content

Remove http service #503

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

Merged
merged 7 commits into from
May 17, 2020
Merged

Remove http service #503

merged 7 commits into from
May 17, 2020

Conversation

yoshuawuyts
Copy link
Member

Depends on #501. Removes all of our use of http-service, simplifying our tests significantly. This sets us up to use Surf for our request instantiation in the future as well. Thanks!

@yoshuawuyts yoshuawuyts force-pushed the remove-http-service branch from 8fe0295 to b45bf6b Compare May 15, 2020 12:47
Copy link
Member

@jbr jbr left a comment

Choose a reason for hiding this comment

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

It's really cool that so little new code was needed to replace http-service 👍

My only real concern is with error handling. I need to check back on the details, but I believe the spec has notions of what type of responses must be sent back for different types of errors that occur within async-h1 that we're currently squishing into an Other io::Error.

One approach to this might be for a request to have a way of attaching an http-level error to it so that some sort of default middleware can figure out how to respond to it?

@yoshuawuyts yoshuawuyts mentioned this pull request May 17, 2020
@yoshuawuyts yoshuawuyts merged commit 4a62009 into master May 17, 2020
@yoshuawuyts yoshuawuyts deleted the remove-http-service branch May 17, 2020 00:50
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.

3 participants