public class RetrofitClientResponseInterceptor
extends retrofit.client.OkClient
Overrides the OkHttp client in order to intercept the rate limit data returned by the API in headers
| Constructor and Description |
|---|
RetrofitClientResponseInterceptor(com.squareup.okhttp.OkHttpClient client) |
| Modifier and Type | Method and Description |
|---|---|
retrofit.client.Response |
execute(retrofit.client.Request request)
Gets and stores the values of the rate limit information headers returned by Strava with each response
|
public RetrofitClientResponseInterceptor(com.squareup.okhttp.OkHttpClient client)
client - The client to usepublic retrofit.client.Response execute(retrofit.client.Request request)
throws IOException
Gets and stores the values of the rate limit information headers returned by Strava with each response
execute in interface retrofit.client.Clientexecute in class retrofit.client.OkClientIOExceptionOkClient.execute(retrofit.client.Request)Copyright © 2015 Dan Shannon. All rights reserved.