Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Use constants for HTTP headers

#1390

E.g. ActionController::Http::Headers::CONTENT_LENGTH = 'Content-Length'.

One logical place for the constantly used identical strings and minute performance gains.

Reported by Cheah Chu Yeow · November 17th, 2008 @ 11:15 AM

State: wontfix
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. DHH
    DHH
    • 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.

    November 19th, 2008 @ 09:53 AM