[rabbitmq-discuss] set content_type using PHP

Alix B alix.baggio at gmail.com
Tue Apr 22 11:02:00 BST 2014


You can set the content_type for a AMQPMessage

public function foo(AMQPMessage &$response)
{
        $response->set('content_type', 'application/json');
        /* ... */
}

Le mercredi 9 avril 2014 17:09:48 UTC+2, aaron kenny a écrit :
>
> I'm struggling to find out how to set the content_type='text/json'. ive 
> seen it set before via th basic_publish() function but not for PHP. Any 
> ideas.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140422/198c122f/attachment.html>


More information about the rabbitmq-discuss mailing list