Controls how RestRserve encodes and decodes different content types. This middleware is passed by default to the Application constructor.

See also

Super class

RestRserve::Middleware -> EncodeDecodeMiddleware

Public fields

ContentHandlers

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 using set_encode and set_decode methods.
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.

Methods

Public methods

Inherited methods

Method new()

Creates EncodeDecodeMiddleware middleware object.

Usage

EncodeDecodeMiddleware$new(id = "EncodeDecodeMiddleware")

Arguments

id

Middleware id.


Method clone()

The objects of this class are cloneable with this method.

Usage

EncodeDecodeMiddleware$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.