Skip to main content

Module sources

Module sources 

Source
Expand description

Binding sources. A data model path can follow a host source (exp:issues?board=…): the host registers one resolver per scheme, the router emits a bind op, the resolver’s emits land at the path.

Structs§

ParsedSource

Functions§

parse_source
exp:issues?board=b1&limit=20 → {scheme: "exp", name: "issues", params: {board: "b1", limit: "20"}}; None when it does not parse (catalog/host.json sources.pattern).
source_with_params
VAPP-122: source with params appended as its query, for the bind action (sourceWithParams): keys sorted, key and value percent-encoded, a null value skipped, an object or array as JSON, after ? or &. A repeated key parses with the last value, so a param overrides the source’s own.