Contact Us 1-800-596-4880

Mime (dw::module::Mime)

This module contains helper functions for working with MIME type.

To use this module, you must import it to your DataWeave code, for example, by adding the line import * from dw::module::Mime to the header of your DataWeave script.

Introduced in DataWeave version 2.7.0.

Functions

Name Description

fromString

Transforms a MIME type string value representation to a MimeType.

isHandledBy

Returns true if the given MimeType value is handled by the base MimeType value.

toString

Transforms a MimeType value to a string representation.

Types