MCPcopy
hub / github.com/request/request / noBody

Function noBody

request.js:1008–1018  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

1006 })
1007
1008 var noBody = function (code) {
1009 return (
1010 self.method === 'HEAD' ||
1011 // Informational
1012 (code >= 100 && code < 200) ||
1013 // No Content
1014 code === 204 ||
1015 // Not Modified
1016 code === 304
1017 )
1018 }
1019
1020 var responseContent
1021 if (self.gzip && !noBody(response.statusCode)) {

Callers 1

request.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…