Nyholm / psr7

A super lightweight PSR-7 implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

For what reason message trait contains original header names?

shirokovnv opened this issue · comments

Hello!

First of all, I would like to say thanks for your effort and very good and strict implementation of PSR-7.

I have a little question (not an issue, but due to missing discussion section, I will place it here):

For what reason $headerNames variable contains original headers in Message trait ?

Is it only for debug purposes, when in some cases we need to see originally registered header name ?

According to PSR-7 standart, getHeader functions must return headers in case-insensitive manner or did I miss something ?

Thank you for any help.