本文整理了Java中jodd.http.HttpResponse.close()
方法的一些代码示例,展示了HttpResponse.close()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpResponse.close()
方法的具体详情如下:
包路径:jodd.http.HttpResponse
类名称: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();
内容来源于网络,如有侵权,请联系作者删除!