log.info("xxxx");
HttpRequest httpRequest = HttpRequest.get("https://xxxxxxxxxxxx.txt"); //1. 構(gòu)建一個get請求
log.info(httpRequest.url());
HttpResponse response = httpRequest.send(); //2.發(fā)送請求并接受響應(yīng)信息
log.info(response.statusPhrase());
log.info(response.statusCode() + "");
log.info(response.bodyText().length() / 1024 / 1024 + "M");
log.info(response.mediaType());