@@ -69,12 +69,12 @@ public function getHeaders();
69
69
/**
70
70
* Checks if a header exists by the given case-insensitive name.
71
71
*
72
- * @param string $header Case-insensitive header name.
72
+ * @param string $name Case-insensitive header field name.
73
73
* @return bool Returns true if any header names match the given header
74
74
* name using a case-insensitive string comparison. Returns false if
75
75
* no matching header name is found in the message.
76
76
*/
77
- public function hasHeader ($ header );
77
+ public function hasHeader ($ name );
78
78
79
79
/**
80
80
* Retrieve a header by the given case-insensitive name, as a string.
@@ -87,18 +87,18 @@ public function hasHeader($header);
87
87
* comma concatenation. For such headers, use getHeaderLines() instead
88
88
* and supply your own delimiter when concatenating.
89
89
*
90
- * @param string $header Case-insensitive header name.
90
+ * @param string $name Case-insensitive header field name.
91
91
* @return string
92
92
*/
93
- public function getHeader ($ header );
93
+ public function getHeader ($ name );
94
94
95
95
/**
96
96
* Retrieves a header by the given case-insensitive name as an array of strings.
97
97
*
98
- * @param string $header Case-insensitive header name.
98
+ * @param string $name Case-insensitive header field name.
99
99
* @return string[]
100
100
*/
101
- public function getHeaderLines ($ header );
101
+ public function getHeaderLines ($ name );
102
102
103
103
/**
104
104
* Create a new instance with the provided header, replacing any existing
@@ -111,12 +111,12 @@ public function getHeaderLines($header);
111
111
* immutability of the message, and MUST return a new instance that has the
112
112
* new and/or updated header and value.
113
113
*
114
- * @param string $header Header name
114
+ * @param string $name Case-insensitive header field name.
115
115
* @param string|string[] $value Header value(s).
116
116
* @return self
117
117
* @throws \InvalidArgumentException for invalid header names or values.
118
118
*/
119
- public function withHeader ($ header , $ value );
119
+ public function withHeader ($ name , $ value );
120
120
121
121
/**
122
122
* Creates a new instance, with the specified header appended with the
@@ -130,12 +130,12 @@ public function withHeader($header, $value);
130
130
* immutability of the message, and MUST return a new instance that has the
131
131
* new header and/or value.
132
132
*
133
- * @param string $header Header name to add
133
+ * @param string $name Case-insensitive header field name to add.
134
134
* @param string|string[] $value Header value(s).
135
135
* @return self
136
136
* @throws \InvalidArgumentException for invalid header names or values.
137
137
*/
138
- public function withAddedHeader ($ header , $ value );
138
+ public function withAddedHeader ($ name , $ value );
139
139
140
140
/**
141
141
* Creates a new instance, without the specified header.
@@ -146,10 +146,10 @@ public function withAddedHeader($header, $value);
146
146
* immutability of the message, and MUST return a new instance that removes
147
147
* the named header.
148
148
*
149
- * @param string $header HTTP header to remove
149
+ * @param string $name Case-insensitive header field name to remove.
150
150
* @return self
151
151
*/
152
- public function withoutHeader ($ header );
152
+ public function withoutHeader ($ name );
153
153
154
154
/**
155
155
* Gets the body of the message.
0 commit comments