Skip to content

Interceptor.Chain is missing connectionSpecs #9741

Description

@edechamps-Google

#9108 made it possible for Interceptors to access various OkHttpClient options from Interceptor.Chain.

However, it is not possible to access OkHttpClient.connectionSpecs in this way, as there is no accessor for it.

This presents a problem when implementing "transport" interceptors that wish to take over the Call and run it themselves (as opposed to passing it down OkHttp's stack), which is what we are trying to do. Such an interceptor would want to know what the connection specs so that it can follow them.

@yschimke @vkasprov

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions