added bodycapture as bytearray

Allows the body captured in request to be returned as a bytearray