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.


Use this solution in your Compute service:

  1. JavaScript
  2. Rust

User contributed notes


Do you see an error in this page? Do have an interesting use case, example or edge case people should know about? Share your knowledge and help people who are reading this page! (Comments are moderated; for support, please contact support@fastly.com)