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

Link copied to clipboard

Placeholder for the full subdomain of the original request host.

Link copied to clipboard

Placeholder for the full original request host.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard

Functions

Link copied to clipboard

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.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.