set content_type depending on service.formats and accept header
store media type in env["wd.media_type"]