ProxyURLConfig
data class ProxyURLConfig(val baseURL: String, val path: String = "", val additionalHeaders: Map<String, String> = emptyMap(), val strategy: ProxyStrategy = ProxyStrategy.HEADER_ORIGINAL_URL, val originalUrlHeaderName: String? = "X-Adswizz-Proxy-Original-URL", val originalUrlQueryParam: String? = "target_uri")
Configuration object that defines how a network request should be mapped to a proxy.
Properties
Link copied to clipboard
Optional headers appended to every proxied request.
Link copied to clipboard
The header name used to transmit the original request URL when using ProxyStrategy.HEADER_ORIGINAL_URL
Link copied to clipboard
The query parameter name used to embed the original request URL when using ProxyStrategy.QUERY_PARAM_ORIGINAL_URL.
Link copied to clipboard
Determines how the original destination URL is embedded into the proxied request.