Learn R Programming

RestRserve (version 0.2.0.2)

EncodeDecodeMiddleware: Creates EncodeDecodeMiddleware middleware object

Description

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

Arguments

Format

R6::R6Class object.

Construction

EncodeDecodeMiddleware$new(id = "EncodeDecodeMiddleware")
  • id :: character(1) Middleware id

Fields

  • ContentHandlers :: 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.

See Also

Middleware Application ContentHandlers