support closure for the response body