Replaces literal placeholders in addresses from another resolver.
Each replacement applies to every occurrence. Replacements run in object insertion order, so a replacement value can be changed by a later entry.
Replaces literal placeholders in addresses from another resolver.
Each replacement applies to every occurrence. Replacements run in object insertion order, so a replacement value can be changed by a later entry.
Returns a JSON-safe value for logs.
Creates a template expander.
The constructor keeps the substitutions object by reference. Do not mutate it while requests are being resolved.
Replaces literal placeholders in addresses from another resolver.
Each replacement applies to every occurrence. Replacements run in object insertion order, so a replacement value can be changed by a later entry.
Example