future.done();
}
return;
}
final boolean headerOK = handler.onHeadersReceived(responseHeaders) == STATE.CONTINUE;
if (!headerOK || !validStatus || !validUpgrade || !validConnection) {
requestSender.abort(channel, future, new IOException("Invalid handshake response"));
return;
}