HTTP Event Source
Pipedream is a platform for running hosted, backend components. An HTTP Event Source is essentially a RequestBin that can be managed via API.
Components can emit events, which can be retrieved programmatically via CLI, API or SSE. They can also trigger Pipedream workflows on every event. For example, you can process items from an RSS feed and access the items via REST API, or trigger code to run on every new item using the SSE interface or a workflow.
To install the Pipedream CLI, run:
curl https://cli.pipedream.com/install | sh
pd deploy https://github.com/PipedreamHQ/pipedream/blob/master/components/http/http.js
This deploys an HTTP event source and creates a unique endpoint URL you can send any HTTP requests to:
id: dc_abc123 name: http endpoint: https://myendpoint.m.pipedream.net
The CLI will automatically listen for new requests to this URL, displaying them in your shell as soon as they arrive. Send a test request using the provided cURL command to give it a try.
You can also run any Node.js code on HTTP requests to filter or transform them, issue a custom HTTP response, and more — see the example components below.