Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: On creating hash whose keys aren't case-sensitive

by tobyink (Abbot)
on Feb 18, 2012 at 10:56 UTC ( #954736=note: print w/ replies, xml ) Need Help??


in reply to On creating hash whose keys aren't case-sensitive

Why not use HTTP::Headers? It's got all the init_header, push_header, remove_header stuff already done.

You may just need to write a small subclass to add a $header_ref->print_headers method which prints out headers in a format suitable for CGI.


Comment on Re: On creating hash whose keys aren't case-sensitive
Download Code
Replies are listed 'Best First'.
Re^2: On creating hash whose keys aren't case-sensitive
by anazawa (Scribe) on Feb 18, 2012 at 15:33 UTC
    I welcome your suggestion. Plack::Util::headers is maybe inspired by HTTP::Headers. Maybe not. I assumed that I might not modify the main script. In addition, I love CGI.pm :)
Re^2: On creating hash whose keys aren't case-sensitive
by Anonymous Monk on Sep 17, 2012 at 15:57 UTC

    Has anyone written this subclass or method? This would be VERY helpful as I want to use REST::Client which requires a hashref of the headers.

    I wish HTTP::Headers had this as a built-in!!

    Thanks in advance!!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://954736]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (13)
As of 2015-07-31 11:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (276 votes), past polls