Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sandydoo/cf-worker-transform-stream
cf-worker-transform-stream
https://github.com/sandydoo/cf-worker-transform-stream
Last synced: 16 days ago
JSON representation
cf-worker-transform-stream
- Host: GitHub
- URL: https://github.com/sandydoo/cf-worker-transform-stream
- Owner: sandydoo
- Created: 2023-05-16T18:09:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-16T18:21:23.000Z (over 1 year ago)
- Last Synced: 2024-10-06T17:22:35.437Z (about 1 month ago)
- Language: TypeScript
- Size: 51.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A proof-of-concept Cloudflare worker that modifies a stream of bytes.
In this example, we fetch an upstream HTML page and stream the back the
response, printing out the total number of bytes sent on every processed chunk.Start a development server:
```bash
$ nix develop
$ wrangler dev
```Test the worker:
```bash
$ curl http://localhost:8787
Request from: 127.0.0.1
Sent 1256 bytes
GET / 200 OK (837.96ms)
```