provide a way to retrieve response body programatically