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

Function shouldSendContentLength

deps/undici/undici.js:7849–7851  ·  view source on GitHub ↗
(method)

Source from the content-addressed store, hash-verified

7847 }
7848 __name(resumeH1, "resumeH1");
7849 function shouldSendContentLength(method) {
7850 return method !== "GET" && method !== "HEAD" && method !== "OPTIONS" && method !== "TRACE" && method !== "CONNECT";
7851 }
7852 __name(shouldSendContentLength, "shouldSendContentLength");
7853 function writeH1(client, request) {
7854 const { method, path, host, upgrade, blocking, reset } = request;

Callers 2

writeH1Function · 0.70
writeH2Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected