public Interceptor interceptToProgressResponse ( ) { return new Interceptor ( ) { @ Override public Response intercept ( Chain chain ) throws IOException { Response response = chain . proceed ( chain . request ( ) ) ; ResponseBody body = new ForwardResponseBody ( response . body ( ) ) ; return response . newBuilder ( ) . body ( body ) . build ( ) ; } } ; }
intercept the Response body stream progress