Package com.inductiveautomation.ignition.common.http


@NullMarked package com.inductiveautomation.ignition.common.http
Shared Apache HttpClient policy objects applied to every HTTP client Ignition builds.

Ignition constructs Apache HttpClient instances in several independent places: the gateway's shared pooled client, the gateway network's WebSocket transport, and the Vision IP camera viewer. Each builds its own client because each owns a different connection manager, but all three must agree on how the client behaves when a server responds with a retriable status code or a redirect. The strategies here are that shared agreement.

Both strategies are stateless and immutable, so a single instance can be handed to every builder. Install them on any new client via HttpClientBuilder#setRetryStrategy and HttpClientBuilder#setRedirectStrategy; a client that omits them silently picks up Apache's defaults instead, which differ from the behavior the rest of the platform expects.

Neither strategy governs timeouts, cookie policy, or connection pooling. Those are per-client concerns and stay with the code that owns the connection manager.