Demonstrates Web Streams API features including custom ReadableStream, TransformStream, and byte streams.
/sync- Default stream with uppercase transform (synchronous)/async- Default stream with uppercase transform (with delays)/bytes/sync- Byte stream, no transform (synchronous)/bytes/async- Byte stream, no transform (with delays)
$ bazel run //src/workerd/server:workerd -- serve $(pwd)/samples/web-streams/config.capnpOr with a local workerd binary:
$ ./workerd serve config.capnp$ curl http://localhost:8080/sync
$ curl http://localhost:8080/async
$ curl http://localhost:8080/bytes/sync
$ curl http://localhost:8080/bytes/async