File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,9 @@ public function withProtocolVersion($version);
58
58
* }
59
59
* }
60
60
*
61
+ * While header names are not case-sensitive, getHeaders() will preserve the
62
+ * exact case in which headers were originally specified.
63
+ *
61
64
* @return array Returns an associative array of the message's headers. Each
62
65
* key MUST be a header name, and each value MUST be an array of strings.
63
66
*/
@@ -101,8 +104,8 @@ public function getHeaderLines($header);
101
104
* Create a new instance with the provided header, replacing any existing
102
105
* values of any headers with the same case-insensitive name.
103
106
*
104
- * The header name is case-insensitive. The header values MUST be a string
105
- * or an array of strings .
107
+ * While header names are case-insensitive, the casing of the header will
108
+ * be preserved by this function, and returned from getHeaders() .
106
109
*
107
110
* This method MUST be implemented in such a way as to retain the
108
111
* immutability of the message, and MUST return a new instance that has the
You can’t perform that action at this time.
0 commit comments