HTTPEventBridge forwards event JSON over HTTP and can optionally expose an inbound HTTP listener.
Constructor params
send_to: optional outbound endpoint (http://orhttps://)listen_on: optional inbound endpoint (http://only)name: optional bridge label
- Python
- TypeScript
Setup with a bus
- Python
- TypeScript
Behavior
emit(...)serializes an event and sends aPOSTrequest tosend_to.on(...)registers handlers on the bridge’s internal inbound bus and auto-starts the listener when needed.- Inbound payloads are parsed back into
BaseEvent, reset to pending state, then emitted on the internal bus. close()shuts down listener/server resources and the internal bus.- In TypeScript, listener mode (
listen_on) is supported in Node.js runtimes.