public NettyHttpRequest(org.jboss.netty.handler.codec.http.HttpRequest request) {
this.request = request;
this.params = newHashMap();
this.content = request.getContent().readable() ?
new ChannelBufferBytesReference(request.getContent()) :
BytesArray.EMPTY;
this.uri = request.getUri();
int pathEndPos = uri.indexOf('?');
if (pathEndPos < 0) {
this.rawPath = uri;