endpoint_serializer | R Documentation |
This method allows serializers to return preexec
, postexec
, and aroundexec
() hooks in addition to a serializer.
This is useful for graphics device serializers which need a
preexec
and postexec
hook to capture the graphics output.
endpoint_serializer(
serializer,
preexec_hook = NULL,
postexec_hook = NULL,
aroundexec_hook = NULL
)
preexec
and postexec
hooks happened directly before and after a route is executed.
These hooks are specific to a single PlumberEndpoint's route calculation.
# The definition of `serializer_device` returns
# * a `serializer_content_type` serializer
# * `aroundexec` hook
print(serializer_device)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.