> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://akamai.ferndocs.com/edge-workers/text-encode-transform/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 WhatWG encoding specification. ```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()) ); }); } ```