akamai / edgeworkers-examples

EdgeWorkers Examples – This repository contains practical examples, that can be used as a starting point for Akamai EdgeWorkers.
Apache License 2.0
138 stars 77 forks source link

response-manipulation: Support async transform #173

Closed joshjohnson closed 11 months ago

joshjohnson commented 1 year ago

When WritableStream.write() and WritableStream.close() contain async code, they should return the Promise, indicating completion.

When this example is modified to make HTTP Requests during processing, it did not wait for the response before processing and returning the next chunk.