本文整理了Java中org.simpleframework.http.Request.isKeepAlive
方法的一些代码示例,展示了Request.isKeepAlive
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.isKeepAlive
方法的具体详情如下:
包路径:org.simpleframework.http.Request
类名称:Request
方法名:isKeepAlive
[英]This is a convenience method that is used to determine whether or not this message has the Connection: close
header. If the close token is present then this stream is not a keep-alive connection. If this has no Connection
header then the keep-alive status is determined by the HTTP version, that is, HTTP/1.1 is keep-alive by default, HTTP/1.0 is not keep-alive by default.
[中]这是一种方便的方法,用于确定此邮件是否具有Connection: close
标题。如果存在关闭令牌,则此流不是保持活动的连接。如果没有Connection
头,则保持活动状态由HTTP版本决定,即HTTP/1.1默认为保持活动状态,HTTP/1.0默认为不保持活动状态。
代码示例来源:origin: ngallagher/simpleframework
/**
* This is a convenience method that is used to determine whether
* or not this message has the <code>Connection: close</code>
* header. If the close token is present then this stream is not
* a keep-alive connection. If this has no <code>Connection</code>
* header then the keep-alive status is determined by the HTTP
* version, that is, HTTP/1.1 is keep-alive by default, HTTP/1.0
* is not keep-alive by default.
*
* @return returns true if this has a keep-alive stream
*/
public boolean isKeepAlive() {
return request.isKeepAlive();
}
代码示例来源:origin: org.simpleframework/simple-http
/**
* This is a convenience method that is used to determine whether
* or not this message has the <code>Connection: close</code>
* header. If the close token is present then this stream is not
* a keep-alive connection. If this has no <code>Connection</code>
* header then the keep-alive status is determined by the HTTP
* version, that is, HTTP/1.1 is keep-alive by default, HTTP/1.0
* is not keep-alive by default.
*
* @return returns true if this has a keep-alive stream
*/
public boolean isKeepAlive() {
return request.isKeepAlive();
}
代码示例来源:origin: org.restlet/org.restlet.ext.simple
@Override
protected boolean isClientKeepAlive() {
return request.isKeepAlive();
}
代码示例来源:origin: org.simpleframework/simple
/**
* This is a convenience method that is used to determine whether
* or not this message has the <code>Connection: close</code>
* header. If the close token is present then this stream is not
* a keep-alive connection. If this has no <code>Connection</code>
* header then the keep-alive status is determined by the HTTP
* version, that is, HTTP/1.1 is keep-alive by default, HTTP/1.0
* is not keep-alive by default.
*
* @return returns true if this has a keep-alive stream
*/
public boolean isKeepAlive() {
return request.isKeepAlive();
}
内容来源于网络,如有侵权,请联系作者删除!