public function Message::withAddedHeader in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/psr-http-message-bridge/Tests/Fixtures/Message.php \Symfony\Bridge\PsrHttpMessage\Tests\Fixtures\Message::withAddedHeader()
Return an instance with the specified header appended with the given value.
Existing values for the specified header will be maintained. The new value(s) will be appended to the existing list. If the header did not exist previously, it will be added.
This method MUST be implemented in such a way as to retain the immutability of the message, and MUST return an instance that has the new header and/or value.
Parameters
string $name Case-insensitive header field name to add.:
string|string[] $value Header value(s).:
Return value
self
Throws
\InvalidArgumentException for invalid header names or values.
Overrides MessageInterface::withAddedHeader
File
- vendor/
symfony/ psr-http-message-bridge/ Tests/ Fixtures/ Message.php, line 70
Class
- Message
- Message.
Namespace
Symfony\Bridge\PsrHttpMessage\Tests\FixturesCode
public function withAddedHeader($name, $value) {
throw new \BadMethodCallException('Not implemented.');
}