jodd.http.HttpResponse.close()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(0.9k)|赞(0)|评价(0)|浏览(261)

本文整理了Java中jodd.http.HttpResponse.close()方法的一些代码示例,展示了HttpResponse.close()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpResponse.close()方法的具体详情如下:
包路径:jodd.http.HttpResponse
类名称:HttpResponse
方法名:close

HttpResponse.close介绍

[英]Closes requests connection if it was open. Should be called when using keep-alive connections. Otherwise, connection will be already closed.
[中]如果连接已打开,则关闭请求连接。使用保持活动连接时应调用。否则,连接将已关闭。

代码示例

代码示例来源:origin: oblac/jodd

/**
 * Closes browser explicitly, needed when keep-alive connection is used.
 */
public void close() {
  if (httpResponse != null) {
    httpResponse.close();
  }
}

代码示例来源:origin: oblac/jodd

httpResponse.close();

代码示例来源:origin: org.jodd/jodd-http

/**
 * Closes browser explicitly, needed when keep-alive connection is used.
 */
public void close() {
  if (httpResponse != null) {
    httpResponse.close();
  }
}

代码示例来源:origin: oblac/jodd

response.close();

代码示例来源:origin: org.jodd/jodd-http

httpResponse.close();

相关文章