HttpLoader

constructor(engineFactory: HttpClientEngineFactory<T>, url: String, fallbackRevocationListValiditySeconds: Long, preferHeaderBasedExpiry: Boolean = true, config: HttpClientConfig<T>.() -> Unit)(source)

Parameters

T

The type of the HttpClientEngineConfig to configure the HTTP engine.

engineFactory

The factory responsible for creating the engine used for the HTTP client.

url

The URL from which the revocation list will be fetched. Defaults to the official Google attestation revocation list URL.

preferHeaderBasedExpiry

Controls whether HTTP header-derived expiry should be preferred over a JSON expires value (see "Expiry resolution" for full details). Google explicitly mentions Cache-Control to communicate expiry times, most probably because it will work as expected regardless of clock drifts.

config

An optional HTTP client configuration lambda that allows customization of the client's behaviour. Note that fixed defaults for caching, content-negotiation, and deserialization may override parts of the provided config.