MCPcopy Index your code
hub / github.com/nodejs/node / strictContentLength

Function strictContentLength

lib/_http_outgoing.js:922–931  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

920}
921
922function strictContentLength(msg) {
923 return (
924 msg.strictContentLength &&
925 msg._contentLength != null &&
926 msg._hasBody &&
927 !msg._removedContLen &&
928 !msg.chunkedEncoding &&
929 !msg.hasHeader('transfer-encoding')
930 );
931}
932
933function write_(msg, chunk, encoding, callback, fromEnd) {
934 if (typeof callback !== 'function')

Callers 2

write_Function · 0.85
_http_outgoing.jsFile · 0.85

Calls 1

hasHeaderMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…