OKhttp 使用Interceptor时报错java.lang.IllegalStateException: closed
1、问题 :Okhttp 网络请求使用Interceptor拦截器后报错,原因是response.body().string()只能调用一次,调用一次后io流会close,再次调用response.body().string()就会报错java.lang.IllegalStateException: closed。
在自定义的Interceptor调用了response.body().strin
原创
2016-12-06 10:24:46 ·
2732 阅读 ·
1 评论