okhttp日志打印拦截器,解决HttpLoggingInterceptor上传文件内存溢出问题

用了okhttp官方的HttpLoggingInterceptor日志打印,发现上传大文件时会出现内存溢出问题。java 写了个拦截器屏蔽了文件类型。可以打印method、url、header、参数和返回内容,以及请求耗时时间。android import android.os.SystemClock; import android.text.TextUtils; import android.u
相关文章
相关标签/搜索