Bluz\Response\Response::getHeaders
Gets all message headers
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); }
Signature
public function getHeaders()
Returns
- array
- returns an associative array of the message's headers.