Skip to content

Commit 5d725e6

Browse files
author
Paul M. Jones
committed
Merge pull request #20 from evert/header-casing-tweak
Changed PHP docblocks.
2 parents d70356c + 8aac535 commit 5d725e6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/MessageInterface.php

+5-2
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)