Response Body Manipulation

Generate and manipulate responses to introduce the concept of a responseProvider within the EdgeWorkers function.


The responseProvider function acts as a surrogate origin by taking the form of an additional callback function within the EdgeWorkers JavaScript.

This callback function is invoked to handle a request and return a response.

It constructs a Promise that resolves to an object created by the createResponse() function. This module contains properties that provide details and context about the request, as well as properties that allow for modifying the response.

To learn more see the Response Orchestration section.