本文整理了Java中io.netty.handler.codec.http.HttpRequest.setProtocolVersion()
方法的一些代码示例,展示了HttpRequest.setProtocolVersion()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpRequest.setProtocolVersion()
方法的具体详情如下:
包路径:io.netty.handler.codec.http.HttpRequest
类名称:HttpRequest
方法名:setProtocolVersion
暂无
代码示例来源:origin: eclipse-vertx/vert.x
@Override
public HttpRequest setProtocolVersion(HttpVersion version) {
return request.setProtocolVersion(version);
}
代码示例来源:origin: wildfly/wildfly
@Override
public HttpRequest setProtocolVersion(HttpVersion version) {
request.setProtocolVersion(version);
return this;
}
代码示例来源:origin: io.vertx/vertx-core
@Override
public HttpRequest setProtocolVersion(HttpVersion version) {
return request.setProtocolVersion(version);
}
代码示例来源:origin: io.netty/netty-codec-http
@Override
public HttpRequest setProtocolVersion(HttpVersion version) {
request.setProtocolVersion(version);
return this;
}
代码示例来源:origin: aws/aws-sdk-java-v2
@Override
public HttpRequest setProtocolVersion(HttpVersion version) {
this.request.setProtocolVersion(version);
return this;
}
代码示例来源:origin: org.apache.activemq/artemis-jms-client-all
@Override
public HttpRequest setProtocolVersion(HttpVersion version) {
request.setProtocolVersion(version);
return this;
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
@Override
public HttpRequest setProtocolVersion(HttpVersion version) {
request.setProtocolVersion(version);
return this;
}
代码示例来源:origin: apache/activemq-artemis
@Override
public HttpRequest setProtocolVersion(HttpVersion version) {
request.setProtocolVersion(version);
return this;
}
代码示例来源:origin: twitter/netty-http2
@Override
public HttpRequest setProtocolVersion(HttpVersion version) {
request.setProtocolVersion(version);
return this;
}
代码示例来源:origin: software.amazon.awssdk/netty-nio-client
@Override
public HttpRequest setProtocolVersion(HttpVersion version) {
this.request.setProtocolVersion(version);
return this;
}
代码示例来源:origin: org.wso2.carbon.transport/org.wso2.carbon.transport.http.netty
public void setHttpVersion(HttpVersion httpVersion) {
this.httpRequest.setProtocolVersion(httpVersion);
}
代码示例来源:origin: buremba/netty-rest
@Override
public io.netty.handler.codec.http.HttpRequest setProtocolVersion(HttpVersion version) {
return request.setProtocolVersion(version);
}
代码示例来源:origin: org.wso2.transport.http/org.wso2.transport.http.netty
public void setHttpVersion(HttpVersion httpVersion) {
this.httpRequest.setProtocolVersion(httpVersion);
}
代码示例来源:origin: io.projectreactor.ipc/reactor-netty
"?" + uri.getRawQuery()))
.setMethod(parent.method)
.setProtocolVersion(HttpVersion.HTTP_1_1)
.headers()
.add(HttpHeaderNames.HOST, host)
代码示例来源:origin: org.wso2.transport.http/org.wso2.transport.http.netty
@SuppressWarnings("unchecked")
public static HttpRequest createHttpRequest(HttpCarbonMessage outboundRequestMsg) {
HttpMethod httpMethod = getHttpMethod(outboundRequestMsg);
HttpVersion httpVersion = getHttpVersion(outboundRequestMsg);
String requestPath = getRequestPath(outboundRequestMsg);
HttpRequest outboundNettyRequest = new DefaultHttpRequest(httpVersion, httpMethod,
(String) outboundRequestMsg.getProperty(TO), false);
outboundNettyRequest.setMethod(httpMethod);
outboundNettyRequest.setProtocolVersion(httpVersion);
outboundNettyRequest.setUri(requestPath);
outboundNettyRequest.headers().add(outboundRequestMsg.getHeaders());
return outboundNettyRequest;
}
代码示例来源:origin: io.projectreactor/reactor-netty
(uri.getQuery() == null ? "" : "?" + uri.getRawQuery()))
.setMethod(method)
.setProtocolVersion(HttpVersion.HTTP_1_1)
.headers()
.add(HttpHeaderNames.HOST, uri.getHost())
代码示例来源:origin: reactor/reactor-netty
.setUri(uri.getPathAndQuery())
.setMethod(method)
.setProtocolVersion(HttpVersion.HTTP_1_1)
.headers();
代码示例来源:origin: io.projectreactor.netty/reactor-netty
.setUri(uri.getPathAndQuery())
.setMethod(method)
.setProtocolVersion(HttpVersion.HTTP_1_1)
.headers();
内容来源于网络,如有侵权,请联系作者删除!