headers.remove(Headers.KEEP_ALIVE);
headers.remove(Headers.TRANSFER_ENCODING);
SpdyProtocolUtils.putInt(inputBuffer, headers.size());
long fiCookie = headers.fastIterateNonEmpty();
while (fiCookie != -1) {
HeaderValues headerValues = headers.fiCurrent(fiCookie);
//TODO: for now it just fails if there are too many headers
SpdyProtocolUtils.putInt(inputBuffer, headerValues.getHeaderName().length());
for (int i = 0; i < headerValues.getHeaderName().length(); ++i) {