MCPcopy Create free account
hub / github.com/cli/cli / responseHasBody

Function responseHasBody

script/ghmock/server.go:264–267  ·  view source on GitHub ↗
(method string, status int)

Source from the content-addressed store, hash-verified

262}
263
264func responseHasBody(method string, status int) bool {
265 return method != http.MethodHead && status >= 200 &&
266 status != http.StatusNoContent && status != http.StatusNotModified
267}
268
269// tunnel answers a CONNECT as the host gh asked for: it completes the TLS
270// handshake with a certificate from ghmock's authority, then hands the

Callers 1

ServeHTTPMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected