Hi
you can work with mime type [content type]
check for various content types available and code it on response/request object