MCPcopy Create free account
hub / github.com/OreosLab/bili / closeResource

Method closeResource

src/main/java/top/misec/utils/HttpUtils.java:170–177  ·  view source on GitHub ↗
(CloseableHttpClient httpClient, CloseableHttpResponse response)

Source from the content-addressed store, hash-verified

168 }
169
170 private static void closeResource(CloseableHttpClient httpClient, CloseableHttpResponse response) {
171 try {
172 httpClient.close();
173 response.close();
174 } catch (IOException e) {
175 log.info("释放资源失败", e);
176 }
177 }
178
179 public static void setUserAgent(String userAgent) {
180 if (StringUtils.isNotBlank(userAgent)) {

Callers 2

doPostMethod · 0.95
doGetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected