public function Message::toString in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/zendframework/zend-stdlib/src/Message.php \Zend\Stdlib\Message::toString()
Return value
string
File
- vendor/
zendframework/ zend-stdlib/ src/ Message.php, line 105
Class
Namespace
Zend\StdlibCode
public function toString() {
$request = '';
foreach ($this
->getMetadata() as $key => $value) {
$request .= sprintf("%s: %s\r\n", (string) $key, (string) $value);
}
$request .= "\r\n" . $this
->getContent();
return $request;
}