本文整理了Java中org.eclipse.jetty.server.Request.setProtocol
方法的一些代码示例,展示了Request.setProtocol
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.setProtocol
方法的具体详情如下:
包路径:org.eclipse.jetty.server.Request
类名称:Request
方法名:setProtocol
暂无
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
public void parsedProtocol(Buffer protocol) throws IOException
{
if (protocol != null && protocol.length()>0)
{
_request.setProtocol(protocol.toString());
}
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
_request.setPathInfo(outerRequest.getRequestURI());
_request.setQueryString(outerRequest.getQueryString());
_request.setProtocol(outerRequest.getProtocol());
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp
_request.setProtocol(HttpVersions.HTTP_0_9);
_version=HttpVersions.HTTP_0_9_ORDINAL;
_version = HttpVersions.CACHE.getOrdinal(version);
if (_version <= 0) _version = HttpVersions.HTTP_1_0_ORDINAL;
_request.setProtocol(version.toString());
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
_request.setProtocol(HttpVersions.HTTP_0_9);
_version=HttpVersions.HTTP_0_9_ORDINAL;
_version = HttpVersions.CACHE.getOrdinal(version);
if (_version <= 0) _version = HttpVersions.HTTP_1_0_ORDINAL;
_request.setProtocol(version.toString());
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server
_request.setProtocol(HttpVersions.HTTP_0_9);
_version=HttpVersions.HTTP_0_9_ORDINAL;
_version = HttpVersions.CACHE.getOrdinal(version);
if (_version <= 0) _version = HttpVersions.HTTP_1_0_ORDINAL;
_request.setProtocol(version.toString());
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus
_request.setProtocol(HttpVersions.HTTP_0_9);
_version=HttpVersions.HTTP_0_9_ORDINAL;
_version = HttpVersions.CACHE.getOrdinal(version);
if (_version <= 0) _version = HttpVersions.HTTP_1_0_ORDINAL;
_request.setProtocol(version.toString());
代码示例来源:origin: org.eclipse.jetty/server
_request.setProtocol(HttpVersions.HTTP_0_9);
_version=HttpVersions.HTTP_0_9_ORDINAL;
_version = HttpVersions.CACHE.getOrdinal(version);
if (_version <= 0) _version = HttpVersions.HTTP_1_0_ORDINAL;
_request.setProtocol(version.toString());
内容来源于网络,如有侵权,请联系作者删除!