Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 Retrofit 获得原始 http 响应?我已经用 Response 和 ResponseBody 进行了测试,但都失败了,并说:
type 'String' is not a subtype of type 'ResponseBody?'
我收到了一个 tar 文件,这就是为什么我需要得到一个原始响应然后调用 Response.body,用 TarReader 解析它。
预期行为:能够获得响应正文的原始字节。
谢谢。