-
Notifications
You must be signed in to change notification settings - Fork 79
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
Read response headers #30
Comments
Oh - having seen Would it be possible to expose some way of getting everything as just strings, possibly with a note in the documentation suggesting people use the stronger typed interface instead? |
Yeah, exactly. Both types need work actually to be extended with common cases, but we could definitely do something to expose them as strings too - |
Yeah I think so - then presumably I could do something like Also perhaps a newtype wrapper around |
Yep, that's along the lines of what I was thinking. Case insensitive newtype for |
Ok, I've added those functions now. Although on further reflection neither |
I'd like to be able to do things like ask if a response has a certain header, or get the value of a certain header in the response (if it exists).
Currently it seems impossible to do this, since the
ResponseHeader
data type doesn't export its constructor, and I don't see any functions for extracting this information from them.The text was updated successfully, but these errors were encountered: