@andrewcturing/http
v0.3.3
Published
Pipedream Http Components
Downloads
2
Readme
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 come with a built-in key-value store, an interface for passing input via props, and more. You deploy and manage components using Pipedream's REST API, CLI, or UI.
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.
Quickstart
Install the Pipedream CLI, then run:
pd deploy http-new-requests
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 retrieve requests to this endpoint programmatically, using Pipedream's REST API, CLI or a private SSE stream tied to your event source.
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.