-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
web.Response converts headers to uppercase #223
Comments
Good point. I would say more: send headers titled instead of uppercased like they are defined in spec (Content-Type etc.). Turning them all into upper case looks as an ugly hack to simplify key lookup and further comparison. |
Hmm. Nice to have, but requires deep multidict refactoring. |
@asvetlov looks cool, but does multidict is really needs in such optimization? I always thought that routing is far much more good candidate for that...anyway, look forward for your work on this! |
I did profiling. |
As @kxepal suggested, we could default to title case instead of upper case. That would avoid changing the actual storage structures, and can be done when formatting the response. |
@isaacl it requires data structure changing. |
-1 for camel case. I like capitalized header On Thursday, January 8, 2015, Andrew Svetlov [email protected]
|
HTTP headers are technically case insensitive but it might be nice to preserve input case for readability.
The text was updated successfully, but these errors were encountered: