clearer handling of end-of-body in HTTP for in_response_body, in_request_body calls