Writing to streams

is this what you're looking for?
{
"pipelines": [
{
"pipeline": "<STREAM_ID>",
"binding": "STREAM"
}
]
}
{
"pipelines": [
{
"pipeline": "<STREAM_ID>",
"binding": "STREAM"
}
]
}
https://developers.cloudflare.com/pipelines/streams/writing-to-streams/
Cloudflare Docs
Writing to streams
Send data to streams via Worker bindings or HTTP endpoints
5 Replies
David.Stanton
David.Stanton5w ago
you can only add that with wrangler cant you, not in the UI?
Marc
MarcOP5w ago
Can you walk me through what exactly you're trying to do? In general, the HTTP endpoint is for getting data into pipelines from sources that aren't a Cloudflare worker. The binding is specifically for a Cloudflare worker (which deployed/managed by Wrangler). What is the source of data going into your pipeline?
David.Stanton
David.Stanton5w ago
people hitting a url, which goes through a worker acting asa proxy, this worker pushes off stats to the pipiline on the request and response. I know I can bind it with wrangler but why cant i bind it in the ui, like all the other bindings
Marc
MarcOP5w ago
ah I see what you're saying - and then I assume you'd edit the code in the worker to invoke the binding via the workers playground IDE? We just haven't gotten around to adding Pipelines to that UI but plan to
David.Stanton
David.Stanton4w ago
ye i use the "ui" more than i use warangler/git etc for these sort of things, as its "quick testing" proof of concept etc, copy/ paste, no need for a complate ci setup yet etc. So hvaing the "binding" in the ui with the rest would be good, juts have to add the 2 id's/ pick them from a drop list etc. Instead at the moment i'm uiosng the http endpioint because i can juts drop the few libnes of code in quicker

Did you find this page helpful?