getContentLength static method

int getContentLength({
  1. required Map headers,
})

Implementation

static int getContentLength({
  required Map headers,
}) {
  return int.tryParse(headers['content-length'] ?? "0") ?? 0;
}