add a method to determine whether the response body is complete