Compressing RabbitMQ

Is there any documentation or examples anyone can provide on how to gzip documents before sending to a rabbitmq-output? (can't see any configuration options for compressing documents on the logstash-rabbitmq-output)

In additon, it would be good to see how the unzip works for rabbitmq-input.

Thanks