Processing HTTP Content-Type and Accept headers