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 (Canon)
on Feb 18, 2012 at 10:56 UTC ( [id://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.

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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://954736]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-25 12:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found