binding (http-filesystem)
Zilla runtime http-filesystem binding
Defines a binding with
http-filesystem
support, with proxy
behavior.The
proxy
kind http-filesystem
binding adapts http
data streams into filesystem
data streams by mapping the path from an inbound http
GET
request into a filesystem relative path.Behaves as a web server when combined with
tcp,
tls
, http
and filesystem
bindings."http_filesystem_proxy0":
{
"type" : "http-filesystem",
"kind": "proxy",
"routes":
[
{
"when":
[
{
"path": "/{path}"
}
],
"exit": "filesystem_server0",
"with":
{
"path": "${params.path}"
}
}
]
}
Binding with support for adapting
http
data streams into filesystem
data streams.Name (* = required) | Type | Description |
---|---|---|
type * | const "http-filesystem" | Adapt http data streams into filesystem data streams |
kind * | enum [ "proxy" ] | Behave as an http-filesystem proxy |
routes | Conditional http-kafka -specific routes | |
exit | string | Default exit binding when no conditional routes are viable |
Routes for adapting
http
data streams into filesystem
data streams.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 |
with | Filesystem parameters used when following this route |
HTTP conditions to match routes when adapting
http
data streams into filesystem
data streams.Name (* = required) | Type | Description |
---|---|---|
path * | string | Path with optional embedded parameter names, such as /{path} |
Filesystem parameters from matched route when adapting
http
data streams into filesystem
data streams.Name (* = required) | Type | Description |
---|---|---|
path * | string | Topic name, optionally referencing path parameter such as ${params.path} |
Last modified 10mo ago