List of usage examples for io.netty.handler.codec.http HttpVersion equals
@Override public boolean equals(Object o)
From source file:reactor.io.net.impl.netty.http.NettyHttpChannel.java
License:Open Source License
@Override public Protocol protocol() { HttpVersion version = this.nettyRequest.getProtocolVersion(); if (version.equals(HttpVersion.HTTP_1_0)) { return Protocol.HTTP_1_0; } else if (version.equals(HttpVersion.HTTP_1_1)) { return Protocol.HTTP_1_1; }/*from w w w . ja v a 2 s . c o m*/ throw new IllegalStateException(version.protocolName() + " not supported"); }
From source file:reactor.ipc.netty.http.client.HttpClientOperations.java
License:Open Source License
@Override public final HttpVersion version() { HttpVersion version = this.nettyRequest.protocolVersion(); if (version.equals(HttpVersion.HTTP_1_0)) { return HttpVersion.HTTP_1_0; } else if (version.equals(HttpVersion.HTTP_1_1)) { return HttpVersion.HTTP_1_1; }/*from w w w . j ava 2 s.c o m*/ throw new IllegalStateException(version.protocolName() + " not supported"); }
From source file:rxweb.engine.server.netty.NettyServerRequestAdapter.java
License:Apache License
@Override public Protocol getProtocol() { HttpVersion version = this.nettyRequest.getProtocolVersion(); if (version.equals(HttpVersion.HTTP_1_0)) { return Protocol.HTTP_1_0; } else if (version.equals(HttpVersion.HTTP_1_1)) { return Protocol.HTTP_2_0; }//from ww w .ja va 2 s. c o m throw new IllegalStateException(version.protocolName() + " not supported"); }