Populate template placeholders in streaming responses

Use a transform stream to search the body of a response and replace simple template placeholders with content generated at the edge, without buffering.

Compute

Use this solution in your Compute service:

  1. JavaScript