Record: FailoverClientConfiguration
Provides a set of HTTP related configurations and failover related configurations. The following fields are inherited from the other configuration records in addition to the failover client-specific configs.
Closed record
Fields
- Fields Included from *CommonClientConfiguration
- httpVersion string
- http1Settings ClientHttp1Settings
- http2Settings ClientHttp2Settings
- timeout decimal
- forwarded string
- followRedirects ballerina/http:1.1.0-beta.2:FollowRedirects?
- poolConfig ballerina/http:1.1.0-beta.2:PoolConfiguration?
- cache CacheConfig
- compression Compression
- auth ballerina/http:1.1.0-beta.2:ClientAuthConfig?
- circuitBreaker ballerina/http:1.1.0-beta.2:CircuitBreakerConfig?
- retryConfig ballerina/http:1.1.0-beta.2:RetryConfig?
- cookieConfig ballerina/http:1.1.0-beta.2:CookieConfig?
- responseLimits ResponseLimitConfigs
- targets TargetService[ ](default [])
- failoverCodes int[ ](default [501, 502, 503, 504])
- interval decimal(default 0)
The upstream HTTP endpoints among which the incoming HTTP traffic load should be sent on failover
Array of HTTP response status codes for which the failover behaviour should be triggered
Failover delay interval in seconds