> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://akamai.ferndocs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://akamai.ferndocs.com/_mcp/server.

# text-encode-transform

The text-encode-transform built-in module is available to use in your EdgeWorkers code bundles. It exports implementations of TextEncoderStream and TextDecoderStream, as described in the  <a href="https://encoding.spec.whatwg.org/" target="_blank">WhatWG encoding specification</a>.

```javascript
import { httpRequest } from 'http-request';
import { createResponse } from 'create-response';
import { TextEncoderStream, TextDecoderStream } from 'text-encode-transform';
export function responseProvider (request) {
  return httpRequest(`${request.scheme}://${request.host}${request.url}`).then(response => {
    return createResponse(
      response.status,
      response.headers,
      response.body.pipeThrough(new TextDecoderStream()).pipeThrough(new TextEncoderStream())
    );
  });
}
```