I hereby claim:
- I am lfmingo on github.
- I am lfmingo (https://keybase.io/lfmingo) on keybase.
- I have a public key ASAe01p4kpQonBQTjeTSoK37PvfkJyOvIR5Q31KvmmfZEgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
OkHttpClient.Builder httpClient = new OkHttpClient.Builder(); | |
httpClient.addInterceptor(new Interceptor() { | |
@Override | |
public Response intercept(Interceptor.Chain chain) throws IOException { | |
Request original = chain.request(); | |
Request request = original.newBuilder() | |
.header("User-Agent", "Your-App-Name") | |
.header("Accept", "application/vnd.yourapi.v1.full+json") | |
.method(original.method(), original.body()) |