pr_set_serializer: Set the default serializer of the router
Description
By default, Plumber serializes responses to JSON. This function updates the
default serializer to the function supplied via serializer
Usage
pr_set_serializer(pr, serializer)
Value
The Plumber router with the new default serializer
Arguments
- pr
A Plumber API. Note: The supplied Plumber API object will also be updated in place as well as returned by the function.
- serializer
A serializer function