memorySize method

int memorySize()

Tries to determine the memory usage of this response.

Implementation

int memorySize() {
  var memory = 1 +
      8 +
      8 +
      4 +
      (_body != null ? _body.size : 0) +
      (url == requestedURL ? url.length : url.length + requestedURL.length);
  return memory;
}