Text/plain content-type frappe.whitelist api

How to explicitly set the Content-Type of an API created using frappe.whitelist? By default, it uses application/json and I need it to use “text/plain” as the Content-Type.

Thanks!