Firefox Tomorrow

web api interface

TextEncoderStream

View on MDN ↗

Available in workers

The TextEncoderStream interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding. It is the streaming equivalent of TextEncoder. It implements the same shape as a TransformStream, allowing it to be used in pipeThrough() and similar methods.

Constructor

Instance properties

Examples

Examples of streaming structured data and HTML

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also