support specifying the mime-type for data payloads