headers are checked first before body content; body content is converted to an array if the content-type in the header can be detected