saves response data in the response object itself.