Package org.jboss.netty.handler.codec.http

Examples of org.jboss.netty.handler.codec.http.HttpMessage.containsHeader()


       // 100-continue response must be passed through.
       ctx.sendDownstream(e);
     } else  if (msg instanceof HttpMessage) {
       HttpMessage m = (HttpMessage) msg;
       //make sure content length is set.
       if (!m.containsHeader(HttpHeaders.Names.CONTENT_LENGTH)) {
         if (m.getContent() != null && m.getContent().readableBytes() > 0) {
           m.setHeader(HttpHeaders.Names.CONTENT_LENGTH, m.getContent().readableBytes());
         } else {
           m.setHeader(HttpHeaders.Names.CONTENT_LENGTH, 0);
         }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.