-
Notifications
You must be signed in to change notification settings - Fork 1
Message: withoutHeader Example
Terry L edited this page Jun 20, 2020
·
3 revisions
Shieldon\Psr7\Message
Return an instance without the specified header.
-
param
stringname*Case-insensitive header field name. -
return
static
Example:
$message = $message->withHeader('foo', 'bar');
echo $message->getHeaderLine('foo');
// Outputs: bar
$message = $message->withoutHeader('foo');
echo $message->getHeaderLine('foo');
// Outputs: composer require shieldon/psr-httpShieldon PSR HTTP implementation written by Terry L. from Taiwan.
