package com.jess.arms.http;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;

/**
 * Created by jess on 8/30/16 17:47
 * Contact with jess.yan.effort@gmail.com
 */
public interface GlobeHttpHandler {
    Response onHttpResultResponse(String httpResult, Interceptor.Chain chain, Response response);

    Request onHttpRequestBefore(Interceptor.Chain chain, Request request);

    GlobeHttpHandler EMPTY = new GlobeHttpHandler() {
        @Override
        public Response onHttpResultResponse(String httpResult, Interceptor.Chain chain, Response response) {
            return response;
        }

        @Override
        public Request onHttpRequestBefore(Interceptor.Chain chain, Request request) {
            return request;
        }
    };

}

@@ -575,24 +575,62 @@
 response) %7B%0A
+            //%E4%B8%8D%E7%AE%A1%E6%98%AF%E5%90%A6%E5%A4%84%E7%90%86,%E9%83%BD%E5%BF%85%E9%A1%BB%E5%B0%86response%E8%BF%94%E5%9B%9E%E5%87%BA%E5%8E%BB%0A
             
@@ -758,24 +758,61 @@
  request) %7B%0A
+            //%E4%B8%8D%E7%AE%A1%E6%98%AF%E5%90%A6%E5%A4%84%E7%90%86,%E9%83%BD%E5%BF%85%E9%A1%BB%E5%B0%86request%E8%BF%94%E5%9B%9E%E5%87%BA%E5%8E%BB%0A
             

improve GlobeHttpHandler.EMPTY