final byte[] tempEncodingBuffer = httpHeader.getTempHeaderEncodingBuffer();
encodedBuffer = encodeMimeHeaders(memoryManager, encodedBuffer, mimeHeaders, tempEncodingBuffer);
onHttpHeadersEncoded(httpHeader, ctx);
encodedBuffer = put(memoryManager, encodedBuffer, CRLF_BYTES);
encodedBuffer.trim();
encodedBuffer.allowBufferDispose(true);
httpHeader.setCommitted(true);
HttpProbeNotifier.notifyHeaderSerialize(this, connection, httpHeader,
encodedBuffer);