| name | http-client-stack |
|---|---|
| description | Use when changing Retrofit, OkHttp, interceptors, retries, proxies, or HTTP logging in this SDK. |
- You modify
Contentstackor related code that buildsRetrofit,OkHttpClient, or interceptors. - You touch
AuthInterceptor, OAuth interceptors, logging, connection pool, timeouts, orRetryConfig/ retry utilities undercom.contentstack.cms.core.
- Retrofit 3 + Gson converter for API interfaces and JSON binding.
- OkHttp 5 for transport; logging-interceptor for debug logging when enabled.
- RxJava 3 is a dependency for async patterns where used; keep consistency with existing call patterns.
AuthInterceptorand OAuth-related types attach tokens and headers expected by CMA. Changes here affect every call—coordinate with tests incore/(e.g.AuthInterceptorTest).
- Retry behavior is configurable via
RetryConfigand related utilities (core/Retry*.java). Preserve backward-compatible defaults when adjusting retry conditions or backoff.
ContentstacksupportsProxyconfiguration; verify behavior if you change client building or connection pool settings.
- Prefer MockWebServer for deterministic HTTP tests; see existing stack and core tests for patterns.
- contentstack-java-cma-sdk/SKILL.md
- testing/SKILL.md
- Retrofit (official)
- OkHttp (official)