Added method to get the request body.