use of io.netty.handler.codec.http.HttpServerCodec in project reactor-netty by reactor.
the class ConnectionTest method addNonByteDecoderWhenNoRight.
@Test
void addNonByteDecoderWhenNoRight() {
channel.pipeline().addLast(NettyPipeline.HttpCodec, new HttpServerCodec());
testContext.addHandlerLast(DECODER_NAME, decoder);
assertThat(channel.pipeline().names()).containsExactly(NettyPipeline.HttpCodec, DECODER_NAME, TAIL_CONTEXT_NAME);
}
use of io.netty.handler.codec.http.HttpServerCodec in project reactor-netty by reactor.
the class ConnectionTest method addByteEncoderWhenNoRight.
@Test
void addByteEncoderWhenNoRight() {
channel.pipeline().addLast(NettyPipeline.HttpCodec, new HttpServerCodec());
testContext.addHandlerFirst(ENCODER_NAME, encoder);
assertThat(channel.pipeline().names()).containsExactly(NettyPipeline.HttpCodec, ENCODER_NAME, TAIL_CONTEXT_NAME);
}
Aggregations