Example usage for com.squareup.okhttp Interceptor interface-usage

List of usage examples for com.squareup.okhttp Interceptor interface-usage

Introduction

In this page you can find the example usage for com.squareup.okhttp Interceptor interface-usage.

Usage

From source file nextflow.ga4gh.tes.client.GzipRequestInterceptor.java

/**
 * Encodes request bodies using gzip.
 *
 * Taken from https://github.com/square/okhttp/issues/350
 */
class GzipRequestInterceptor implements Interceptor {

From source file ooo.oxo.mr.net.LoggingInterceptor.java

public class LoggingInterceptor implements Interceptor {

    private static final String TAG = "OkHttp";

    @Override
    public Response intercept(Chain chain) throws IOException {

From source file org.addhen.birudo.data.net.LoggingInterceptor.java

class LoggingInterceptor implements Interceptor {
    @Override
    public Response intercept(Chain chain) throws IOException {
        Request request = chain.request();

        long t1 = System.nanoTime();

From source file org.dataconservancy.cos.osf.client.support.ApiVersionInterceptor.java

/**
 * Pins the OSF HTTP API to the specified version by adding an {@code Accept} HTTP header specifying the desired version
 * for each request.
 *
 * @author Elliot Metsger (emetsger@jhu.edu)
 * @see <a href="https://api.osf.io/v2/#versioning">OSF API Versioning</a>

From source file org.dataconservancy.cos.osf.client.support.AuthInterceptor.java

/**
 * @author Elliot Metsger (emetsger@jhu.edu)
 */
public class AuthInterceptor implements Interceptor {

    private String authHeader;

From source file org.dataconservancy.cos.osf.client.support.LoggingInterceptor.java

/**
 * @author Elliot Metsger (emetsger@jhu.edu)
 */
public class LoggingInterceptor implements Interceptor {

    @Override

From source file quickbeer.android.next.network.utils.LoginRedirectInterceptor.java

public class LoginRedirectInterceptor implements Interceptor {
    private static final String TAG = LoginRedirectInterceptor.class.getSimpleName();

    @Override
    public Response intercept(Chain chain) throws IOException {
        Request request = chain.request();

From source file se.akerfeldt.okhttp.signpost.SigningInterceptor.java

/**
 * An OKHttp interceptor that signs requests using oauth-signpost.
 */
public class SigningInterceptor implements Interceptor {

    private final OkHttpOAuthConsumer consumer;

From source file syncthing.api.SyncthingApiInterceptor.java

/**
 * Created by drew on 10/10/15.
 */
public class SyncthingApiInterceptor implements Interceptor {
    final SyncthingApiConfig config;