File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 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);
5858 * }
5959 * }
6060 *
61+ * While header names are not case-sensitive, getHeaders() will preserve the
62+ * exact case in which headers were originally specified.
63+ *
6164 * @return array Returns an associative array of the message's headers. Each
6265 * key MUST be a header name, and each value MUST be an array of strings.
6366 */
@@ -101,8 +104,8 @@ public function getHeaderLines($header);
101104 * Create a new instance with the provided header, replacing any existing
102105 * values of any headers with the same case-insensitive name.
103106 *
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() .
106109 *
107110 * This method MUST be implemented in such a way as to retain the
108111 * 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