ByteBuffer buf = super.readBody( header.getContentLength() );
if( buf == null )
return null;
else {
reqNum++;
return new HttpRequest( header, buf.array() );
}
} else {
HttpHeader hd = header;
header = null;
state = STATE_READING_HEADER;
reqNum++;
return new HttpRequest( hd, new byte[0] );
}
}