Apollo-android: Add HTTP header each query/mutation

Created on 28 Sep 2017  ·  3Comments  ·  Source: apollographql/apollo-android

such as @ Header annotation on Retrofit

All 3 comments

You can achieve this with okhttp interceptor. Any reason you need the feature to also be in apollo? https://futurestud.io/tutorials/retrofit-2-manage-request-headers-in-okhttp-interceptor

I wanna use with DI containner such as Dagger2. (´・ω・`)

I'm not sure what you mean. Dagger has nothing to do with headers. Closing as this is not a bug report nor do I believe any work needs to be done

Was this page helpful?
0 / 5 - 0 ratings