Pinned Repositories
addInterceptor-or-addNetworkInterceptor
package com.gpcoder; import java.io.IOException; import com.gpcoder.interceptor.AuthInterceptor; import com.gpcoder.interceptor.LoggingInterceptor; import okhttp3.HttpUrl; import okhttp3.MediaType; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.RequestBody; import okhttp3.Response; public class OkHttpClientWithInterceptorExample {
Interceptor-with-OkHttp
package com.gpcoder.interceptor; import java.io.IOException; import com.gpcoder.service.AuthenticationClient; import okhttp3.Interceptor; import okhttp3.Request; import okhttp3.Response; public class AuthInterceptor implements Interceptor {
oggingInterceptor.java
package com.gpcoder.interceptor; import java.io.IOException; import okhttp3.Interceptor; import okhttp3.Request; import okhttp3.Response; public class LoggingInterceptor implements Interceptor { @Override
OkHttpClientExample.java
package com.gpcoder; import java.io.IOException; import com.gpcoder.service.AuthenticationClient; import okhttp3.HttpUrl; import okhttp3.MediaType; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.RequestBody; import okhttp3.Response; public class OkHttpClientExample {
med012n's Repositories
med012n/addInterceptor-or-addNetworkInterceptor
package com.gpcoder; import java.io.IOException; import com.gpcoder.interceptor.AuthInterceptor; import com.gpcoder.interceptor.LoggingInterceptor; import okhttp3.HttpUrl; import okhttp3.MediaType; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.RequestBody; import okhttp3.Response; public class OkHttpClientWithInterceptorExample {
med012n/Interceptor-with-OkHttp
package com.gpcoder.interceptor; import java.io.IOException; import com.gpcoder.service.AuthenticationClient; import okhttp3.Interceptor; import okhttp3.Request; import okhttp3.Response; public class AuthInterceptor implements Interceptor {
med012n/oggingInterceptor.java
package com.gpcoder.interceptor; import java.io.IOException; import okhttp3.Interceptor; import okhttp3.Request; import okhttp3.Response; public class LoggingInterceptor implements Interceptor { @Override
med012n/OkHttpClientExample.java
package com.gpcoder; import java.io.IOException; import com.gpcoder.service.AuthenticationClient; import okhttp3.HttpUrl; import okhttp3.MediaType; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.RequestBody; import okhttp3.Response; public class OkHttpClientExample {