binding (sse)
Zilla runtime sse binding
Defines a binding with
Server Sent Events (sse)
protocol support, with server
behavior.The
server
kind sse
binding converts inbound http
request-response streams into sse
request-response streams, with optionally configured retry
delay.Messages received on the
sse
response stream are encoded using Server Sent Events
protocol, including support for custom event
types and last event id
."sse_server0":
{
"type" : "sse",
"kind": "server",
"exit": "sse_kafka_proxy0"
}
Binding with support for
sse
protocol.Options for
sse
protocol.Name (* = required) | Type | Description |
---|---|---|
retry | integer | Retry delay (ms)
Defaults to 2000 |
Routes for
sse
protocol.Name (* = required) | Type | Description |
---|---|---|
guarded | object as named map of string array | List of roles required by each named guard to authorize this route |
when | List of conditions (any match) to match this route | |
exit * | string | Next binding when following this route |
Conditions to match routes for
sse
protocol.Name (* = required) | Type | Description |
---|---|---|
path * | string | Path pattern |
Last modified 10mo ago