marshals/body

Members

(static) map :Object

Associates mimetypes to a data marshaller.

Type:
  • Object
Source:

Methods

(static) marshal(mimetype, data) → {Object}

Converts specified data using specified mimetype against module:marshals/body.map to determine the marshal module to be used to marshal output.

Parameters:
Name Type Description
mimetype String

Body mimemimetype

data Object

Data to be marshalled

Source:
See:
Returns:
Type
Object

(static) unmarshal(mimetype, data) → {Object}

Converts specified data using specified mimetype against module:marshals/body.map to determine the marshal module to be used to unmarshal output.

Parameters:
Name Type Description
mimetype String

Body mimemimetype

data Object

Data to be marshalled

Source:
See:
Returns:
Type
Object