webmockr
webmockr copied to clipboard
Change BODY_FORMATS to accommodate more possible content types
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.