MCPcopy Create free account
hub / github.com/pillarjs/multiparty / getBytesExpected

Function getBytesExpected

index.js:583–592  ·  view source on GitHub ↗
(headers)

Source from the content-addressed store, hash-verified

581}
582
583function getBytesExpected(headers) {
584 var contentLength = headers['content-length'];
585 if (contentLength) {
586 return parseInt(contentLength, 10);
587 } else if (headers['transfer-encoding'] == null) {
588 return 0;
589 } else {
590 return null;
591 }
592}
593
594function beginFlush(self) {
595 self.flushing += 1;

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…