Adswizz Http Config
An HTTP configuration options that can be passed to Ad Request & Ad Reporting classes.
Instances are obtained through Builder class. Any property left unset on the builder remains null, in that case, the fallback are the default values of the SDK's HTTP networking engine.
Example:
val config = AdswizzHttpConfig.Builder()
.setConnectionTimeout(java.time.Duration.ofSeconds(5))
.setResponseTimeout(java.time.Duration.ofSeconds(10))
.setRedirectsPolicy(AdswizzHttpConfig.RedirectPolicy.NORMAL)
.setCookiePolicy(AdswizzHttpConfig.CookiePolicy.ACCEPT_ORIGINAL_SERVER)
.setHeaders(mapOf("X-Custom" to "value"))
.build()Types
Builder for AdswizzHttpConfig. All setters are optional; properties not set remain null.
Policy controlling which cookies are accepted from server responses.
Policy controlling how HTTP redirects (3xx responses) are handled.
Properties
Optional maximum time to wait while establishing a connection.
Optional policy controlling whether cookies are accepted or not. See CookiePolicy.
Optional policy controlling how HTTP redirects are followed. See RedirectPolicy.
Optional maximum time to wait for the response after the request has been sent.
Functions
Returns a new Builder pre-populated with the values of this configuration.