MCPcopy Create free account
hub / github.com/dgraph-io/dgraph / readResponseBody

Function readResponseBody

tlstest/zero_https/no_tls/no_tls_test.go:62–67  ·  view source on GitHub ↗
(t *testing.T, do *http.Response)

Source from the content-addressed store, hash-verified

60}
61
62func readResponseBody(t *testing.T, do *http.Response) []byte {
63 defer func() { _ = do.Body.Close() }()
64 body, err := io.ReadAll(do.Body)
65 require.NoError(t, err)
66 return body
67}

Callers 1

TestZeroWithNoTLSFunction · 0.70

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…