Skip to content

Conversation

@pascal-m19
Copy link

was trying to insert an interceptor into an immutable collection : The Interceptor list in OKHttpClient is immutable once the object is created. To workaround this limitation we have to use newBuilder() that keeps all the existing parameters and allows to add or remove interceptors.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

was trying to insert an interceptor into an immutable collection
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