Search in sources :

Example 1 with SpdyHttpResponseStreamIdHandler

use of io.netty.handler.codec.spdy.SpdyHttpResponseStreamIdHandler in project netty by netty.

the class SpdyOrHttpHandler method configureSpdy.

private static void configureSpdy(ChannelHandlerContext ctx, SpdyVersion version) throws Exception {
    ChannelPipeline p = ctx.pipeline();
    p.addLast(new SpdyFrameCodec(version));
    p.addLast(new SpdySessionHandler(version, true));
    p.addLast(new SpdyHttpEncoder(version));
    p.addLast(new SpdyHttpDecoder(version, MAX_CONTENT_LENGTH));
    p.addLast(new SpdyHttpResponseStreamIdHandler());
    p.addLast(new SpdyServerHandler());
}
Also used : SpdyHttpDecoder(io.netty.handler.codec.spdy.SpdyHttpDecoder) SpdyFrameCodec(io.netty.handler.codec.spdy.SpdyFrameCodec) SpdySessionHandler(io.netty.handler.codec.spdy.SpdySessionHandler) SpdyHttpEncoder(io.netty.handler.codec.spdy.SpdyHttpEncoder) SpdyHttpResponseStreamIdHandler(io.netty.handler.codec.spdy.SpdyHttpResponseStreamIdHandler) ChannelPipeline(io.netty.channel.ChannelPipeline)

Aggregations

ChannelPipeline (io.netty.channel.ChannelPipeline)1 SpdyFrameCodec (io.netty.handler.codec.spdy.SpdyFrameCodec)1 SpdyHttpDecoder (io.netty.handler.codec.spdy.SpdyHttpDecoder)1 SpdyHttpEncoder (io.netty.handler.codec.spdy.SpdyHttpEncoder)1 SpdyHttpResponseStreamIdHandler (io.netty.handler.codec.spdy.SpdyHttpResponseStreamIdHandler)1 SpdySessionHandler (io.netty.handler.codec.spdy.SpdySessionHandler)1