-
Notifications
You must be signed in to change notification settings - Fork 17
lookup
for Headers
is not intuitive
#136
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
Comments
Looks like I guess there are some options:
Thoughts on those three options? Maybe there's another thing to do instead? |
I lean towards option #3, see #113 as I've wanted to remove the use of I think the only reason |
@cprussin any chance of a new release with this fix soon? |
Thanks for the release! I think the changes made were breaking though (at least, it makes some of my code not type anymore). Any chance we could get a 0.9.0 release? Maybe also delete the 0.8.2 tag? I dunno how you feel about removing tags that already exist. |
@joneshf I'm surprised that anything in here is breaking, are you relying on any internals in your code? Can you be more specific about what's breaking? Regardless, I'm actually not really worried about the versioning scheme, because semver specifies that any releases below 1.0.0 may be (though I have tried to stick to minor versions for breaking changes and patch versions for non-breaking). That said, even though we haven't already finished all the items on my 1.0 wishlist, it might be time to start thinking about cutting a 1.0 release. That will force our hand at being a bit more careful with backwards compatibility. |
Sorry, I thought I responded to this. Will do so for posterity, even though multiple versions have been released since
I'm not sure what's classified as an internal in If there were some way to work with the concept of Hope that explains what was happening. Lemme know if something is unclear. |
Got it, thanks for posting. Yes, the intention is to work with headers without unwrapping, but as you're pointing out there are certainly things you can't currently do without unwrapping. Regardless, it's fair to say that even if those existed, changing an exported type is breaking. In any case, apologies for the semver abuse and thank you for pointing this out! |
No worries. It wasn't that big of an issue, but forgot to follow-up on it. Would you want to do something about working without unwrapping? We can move to a separate issue if that's better. |
@joneshf honestly I hadn't put too much thought into it, I just had this general feeling that you shouldn't have to unwrap HTTPure newtypes in application code. I'd say if it feels important to anyone, let's go ahead and move to another ticket. |
It would seem there's an issue with the casing for
Headers
. The current behavior is:But, it seems like the behavior should be:
Seems like the issue is the
Lookup
instance. As discussed in Slack, probably easiest to useData.String.CaseInsensitiveString
(at least internally).The text was updated successfully, but these errors were encountered: