Controls how RestRserve encodes and decodes different content types. This middleware is passed by default to the Application constructor.
Class which controls how RestRserve encodes and
decodes different content types. See ContentHandlers for documentation.
User can add new encoding and decoding methods for new content types
In theory user can replace it with his own class (see
RestRserve:::ContentHandlersFactory). However we believe that in
the majority of the cases using ContentHandlers will be enough.
Creates EncodeDecodeMiddleware middleware object.
EncodeDecodeMiddleware$new(id = "EncodeDecodeMiddleware")
The objects of this class are cloneable with this method.
EncodeDecodeMiddleware$clone(deep = FALSE)
Whether to make a deep clone.
Middleware Application ContentHandlers
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.