Skip to content

Conversation

@utkrishtsahu
Copy link
Contributor

@utkrishtsahu utkrishtsahu commented Feb 11, 2026

Changes

Added:

  • DefaultClient.Builder class — a new builder pattern API for constructing DefaultClient instances with full configuration control
  • connectTimeout(Int) — connection timeout in seconds (default: 10)
  • readTimeout(Int) — read timeout in seconds (default: 10)
  • writeTimeout(Int) — write timeout in seconds (default: 10)
  • callTimeout(Int) — overall call timeout in seconds (default: 0/disabled)
  • defaultHeaders(Map<String, String>) — headers included on every request
  • enableLogging(Boolean) — toggle HTTP logging
  • logLevel(HttpLoggingInterceptor.Level) — granular log level control
  • logger(HttpLoggingInterceptor.Logger) — custom logger implementation
  • addInterceptor(Interceptor) — add custom OkHttp interceptors
  • build() — creates the DefaultClient instance

Deprecated:

DefaultClient public constructor (DefaultClient(connectTimeout, readTimeout, defaultHeaders, enableLogging)) — deprecated with @deprecated annotation and ReplaceWith pointing to the Builder API. Still compiles and functions identically; IDE provides one-click quick-fix migration.

Usage:

val client = DefaultClient.Builder()
    .connectTimeout(30)
    .readTimeout(30)
    .writeTimeout(30)
    .enableLogging(true)
    .addInterceptor(myCustomInterceptor)
    .build()

account.networkingClient = client

References

SDK-7763

Testing

Build Passed
Unit Test Passed

Checklist

@utkrishtsahu utkrishtsahu requested a review from a team as a code owner February 11, 2026 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant