bool has_pending_requests() {
  return pending_requests->length() > 0 || pending_body_reads->length() > 0;
}
bool has_pending_requests() {
  return pending_requests->length() > 0 || pending_body_reads->length() > 0;
}