right now BODY_FORMATS is just a lookup in a named list. This doesn't allow for flexibly detecting json or xml, etc. in a content type string. so change to a function call probably where could do the current lookup first, and if no match, then regex for json, xml, html, etc.
right now
BODY_FORMATSis just a lookup in a named list. This doesn't allow for flexibly detecting json or xml, etc. in a content type string. so change to a function call probably where could do the current lookup first, and if no match, then regex for json, xml, html, etc.