-
Notifications
You must be signed in to change notification settings - Fork 24
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
Usability nits #67
Comments
In general, I'm trying to avoid pulling in a whole lot of dependencies, which the As for I don't have a ton of spare time for doing this work, but I'd be happy to help out with reviews and whatnot. |
While avoiding a dependency on |
Our use of this crate in Firefox is an example of exactly that, as it happens. Pulling in |
I want to note a grab bag of minor usability nits to see whether the maintainer(s) care about them and/or agree with my suggestions. These would involve changing or adding to public API so there are meaningful maintainability considerations here.
bhttp
andohttp
is a chore. Is anyone ever going to useohttp
withoutbhttp
? In particular, this is annoying because I wind up having to define separate enum variants in my error type forohttp::Error
andbhttp::Error
, as does glean/Viaduct.bhttp
has its ownbhttp::StatusCode
which is an alias foru16
. What if this washttp::StatusCode
instead? Or perhaps there's a good reason thatbhttp
/ohttp
avoid depending on cratehttp
.bhttp::Message
to things likehttp::Response
orhttp::Request
. These would be easy to gate behind a feature if there's a concern about dragginghttp
into everyone'sCargo.lock
.ClientResponse
that does theCursor
dance for you and spits out a [Message
] (or, in the context of HandlingControlData::Request
when decapsulating responses is awkward #66, a more specific response type).The text was updated successfully, but these errors were encountered: