isXhr property

bool isXhr

Is this an XMLHttpRequest?

Implementation

bool get isXhr {
  return headers?.value('X-Requested-With')?.trim().toLowerCase() ==
      'xmlhttprequest';
}