From e30318864ca97b96178ef40c900b93bd66435879 Mon Sep 17 00:00:00 2001 From: Anton Date: Mon, 14 Oct 2019 20:25:28 +0300 Subject: [PATCH] Update MessageInterface.php Moved in docs in #86 --- src/MessageInterface.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/MessageInterface.php b/src/MessageInterface.php index dd46e5e..ad8f080 100644 --- a/src/MessageInterface.php +++ b/src/MessageInterface.php @@ -46,18 +46,6 @@ public function withProtocolVersion($version); * The keys represent the header name as it will be sent over the wire, and * each value is an array of strings associated with the header. * - * // Represent the headers as a string - * foreach ($message->getHeaders() as $name => $values) { - * echo $name . ": " . implode(", ", $values); - * } - * - * // Emit headers iteratively: - * foreach ($message->getHeaders() as $name => $values) { - * foreach ($values as $value) { - * header(sprintf('%s: %s', $name, $value), false); - * } - * } - * * While header names are not case-sensitive, getHeaders() will preserve the * exact case in which headers were originally specified. *