This project is archived and is in readonly mode.
![Cheah Chu Yeow Cheah Chu Yeow](https://entp-lh-avatar-production.s3.amazonaws.com/avatars/586/large.jpg?AWSAccessKeyId=AKIAJ4QBZRZBVMOUBNZA&Expires=2037088817&Signature=uAe03r1fBRvmqhRLLr60v49nvN4%3D)
Use constants for HTTP headers
Reported by Cheah Chu Yeow | November 17th, 2008 @ 11:15 AM | in 2.x
E.g. ActionController::Http::Headers::CONTENT_LENGTH = 'Content-Length'.
One logical place for the constantly used identical strings and minute performance gains.
Comments and changes to this ticket
-
DHH November 19th, 2008 @ 09:53 AM
- State changed from new to wontfix
- Tag changed from actionpack to actionpack, patch
This feels pretty verbose. I think I'd rather just start using the Headers module more and have symbols for lookup. So we do response.headers[:status] etc.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>