public void inputReady(final NHttpServerConnection conn, final ContentDecoder decoder) {
final HttpContext context = conn.getContext();
final ServerConnState connState = (ServerConnState) context.getAttribute(CONN_STATE);
final HttpRequest request = connState.getRequest();
final ConsumingNHttpEntity consumingEntity = connState.getConsumingEntity();
try {
consumingEntity.consumeContent(decoder, conn);
if (decoder.isCompleted()) {
conn.suspendInput();
processRequest(conn, request);
}