ProxyMacros
Defines the supported token/macro placeholders that may be used in ProxyConfig.path for dynamic proxy path expansion.
Macros are replaced at request time using values derived from the original request URL before the proxied request is executed.
Macro expansion is performed per-request and is case-sensitive.
Unknown or unsupported macros SHOULD be rejected during SDK initialization to prevent misconfiguration.
Supported Tokens
{SUBDOMAIN} Replaced with the full subdomain of the original request host.
Example: Original host: test.deliveryengine.adswizz.com
Token expansion: {SUBDOMAIN} → test.deliveryengine
{HOSTNAME} Replaced with the full original request host.
Example: {HOSTNAME} → test.deliveryengine.adswizz.com
Example Usage
ProxyConfig(
baseURL = "https://proxy.com",
path = "/adswizz/{HOSTNAME}"
)Original request: https://test.deliveryengine.adswizz.com/vast/4.1/request?a=b
Resulting proxied request: https://proxy.com/adswizz/test.deliveryengine.ads?a=b
Entries
Properties
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.