Open zostay opened 9 years ago
One thing I don't especially like in the environment is the way the HTTP headers are passed. This feels arcane. Maybe we keep it this way, but I'd like to also consider adding an alternative like having a hash containing the headers:
%env<p6sgi.headers> = Content-Type => 'text/html', Content-Length => '42', Accept-Encoding => 'gzip', User-Agent => 'evilbot', Referer => 'https://google.com/', ;
I'm contemplating doing this for all headers, not just the HTTP_* ones. Still just contemplating it thought.
One thing I don't especially like in the environment is the way the HTTP headers are passed. This feels arcane. Maybe we keep it this way, but I'd like to also consider adding an alternative like having a hash containing the headers: