android okhttp的使用

 OkHttpClient client = new OkHttpClient();
        String url = "";
        Request request = new Request.Builder()
                .url(url)
                .build();

        try {
            Response response = client.newCall(request).execute();
            return response.body().toString();
        } catch (IOException e) {
            e.printStackTrace();
        }

 

android okhttp的使用

上一篇:Android padding 和margin


下一篇:oracle强化练习题