This project is archived and is in readonly mode.

#1390 ✓wontfix
Cheah Chu Yeow

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

    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=""></a>

People watching this ticket