List of usage examples for io.netty.handler.codec.http HttpServerExpectContinueHandler HttpServerExpectContinueHandler
HttpServerExpectContinueHandler
From source file:com.lufs.preresearch.nettyrouter.playground.HttpHelloWorldServerInitializer.java
License:Apache License
@Override public void initChannel(SocketChannel ch) throws NoSuchMethodException, IllegalAccessException { ChannelPipeline p = ch.pipeline();/* ww w.ja va 2 s .c o m*/ if (sslCtx != null) { p.addLast(sslCtx.newHandler(ch.alloc())); } p.addLast(new HttpServerCodec()); p.addLast(new HttpServerExpectContinueHandler()); p.addLast("httpObjectAggregator", new HttpObjectAggregator(Integer.MAX_VALUE)); p.addLast(new HttpHelloWorldServerHandler(RouteConfig.newMHRouter())); p.addLast(new BadClientSilencer()); }
From source file:com.shiyq.netty.http.helloworld.HttpHelloWorldServerInitializer.java
@Override public void initChannel(SocketChannel ch) { ChannelPipeline p = ch.pipeline();//w w w. j a v a2 s.co m if (sslCtx != null) { p.addLast(sslCtx.newHandler(ch.alloc())); } p.addLast(new HttpServerCodec()); p.addLast(new HttpServerExpectContinueHandler()); p.addLast(new HttpHelloWorldServerHandler()); }