Skip to content

Commit

Permalink
improve GlobeHttpHandler.EMPTY
Browse files Browse the repository at this point in the history
  • Loading branch information
JessYanCoding committed Mar 15, 2017
1 parent 643387a commit ae2cdad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arms/src/main/java/com/jess/arms/http/GlobeHttpHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ public interface GlobeHttpHandler {
GlobeHttpHandler EMPTY = new GlobeHttpHandler() {
@Override
public Response onHttpResultResponse(String httpResult, Interceptor.Chain chain, Response response) {
//不管是否处理,都必须将response返回出去
return response;
}

@Override
public Request onHttpRequestBefore(Interceptor.Chain chain, Request request) {
//不管是否处理,都必须将request返回出去
return request;
}
};
Expand Down

0 comments on commit ae2cdad

Please sign in to comment.