Use iolist_size/1 to get the body size in bytes