pattern
fun pattern(pattern: String, configure: ConfigBlock<ActiveConfig.Record> = ConfigBlock {}, supplier: PathVariablesSupplier<Flow<Map<String, String>>>)(source)
Bind an ant pattern to a supplier of data publishers.
For example, if pattern is provided as /fx/* then when a request for /fx/gbpusd is received the supplier will be called with /fx/gbpusd as the path parameter to return a Flow which will be subscribed to in order to provide data.
Parameters
pattern
The ant pattern for matching subjects for which this supplier will be invoked.
configure
A configuration block that can be used to set up the behaviour of this publisher.
supplier
This will be invoked on each incoming request. It should parse the subject
and provide a Flow capable of supplying data in response.