📜  okhttp3-response-body-string-always-returns-empty - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:32.190000             🧑  作者: Mango

代码示例1
@Override
            public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException {
                if (response.isSuccessful()) {
                    String myResponse = response.peekBody(99999L).string();
                    Log.i("string", myResponse);
                }
            }