@Override
    public int getBodyLength() {
        int size = 0;
        for (HttpContent chunk : bodyChunks) {
            // writer index tracks the total number of bytes written to the buffer regardless of buffer reads
            size += chunk.content().writerIndex();
        }
        return size;
    }
User: michaels@netflix.com
Date: 2/20/15
Time: 3:10 PM
zuul-core/src/main/java/com/netflix/zuul/message/ZuulMessageImpl.java