NodeHttp

constructor(httpClient: HttpClient, trustHost: TrustHost, bearerTokenProvider: () -> String?)(source)

Parameters

httpClient

Pre-configured Ktor client. The caller is responsible for installing engines, content-negotiation, plugins, and trust setup.

trustHost

Trust-store callback used to evict and re-fetch a peer cert when an outbound call fails with an SSL error.

bearerTokenProvider

Supplies the current bearer token (PIN-derived per krill.zone.shared.security.PinDerivation.deriveBearerToken) on each request. null skips the Authorization header entirely, which is what unauthenticated FTUE traffic should do.