okhttp使用笔记
本篇不定期更新,用到哪记到哪Response 对象response.toString()打印:Response{protocol=http/1.1, code=xxx, message=xxx, url=xxx}response.code()打印:xxx(200、404、406、502等HTTP状态码)response.body()打印:okhttp3.internal.http.RealResponseBody@xxxxxxxresponse.body().string()打
原创
2021-08-20 22:00:45 ·
441 阅读 ·
0 评论