Occasionally you may desire to manipulate the response object
slightly, typically to return extra message headers. The
handle() method of the server returns the response
object, allowing you to do so.
Example 30. Adding Message Headers to the AMF Response
In this example, we add a 'foo' MessageHeader with the value 'bar' to the response prior to returning it.
<?php
$response = $server->handle();
$response->addAmfHeader(new Zend_Amf_Value_MessageHeader('foo', true, 'bar'))
echo $response;




