io.netty.handler.codec.http.HttpRequest.setProtocolVersion()方法的使用及代码示例

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

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

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();

相关文章