default_formatters function

A list of default formatter mappings

A list of default formatter mappings

This list matches the most normal mime types with their respective formatters using default arguments. For a no-frills request parsing this can be supplied directly to Response$format(). To add or modify to this list simply supply the additional parsers as second, third, etc, argument and they will overwrite or add depending on whether it specifies a mime type already present. data

default_formatters

Examples

## Not run: res$format(default_formatters, 'text/plain' = format_plain(sep = ' ')) ## End(Not run)

See Also

formatters for an overview of the build in formatters in reqres

  • Maintainer: Thomas Lin Pedersen
  • License: MIT + file LICENSE
  • Last published: 2022-08-19