Add response body size to writer interface

Exposes the response body size of the writer, useful in logging and assertions.