forked from forks/go-ethereum
The functions `rpcRequest` and `batchRpcRequest` call `baseRpcRequest`.
And `resp.Body` will be closed in the function `baseRpcRequest` later by
`t.Cleanup`:
```go
func baseRpcRequest(t *testing.T, url, bodyStr string, extraHeaders ...string) *http.Response {
// ......
t.Cleanup(func() { resp.Body.Close() })
return resp
}
```
|
||
|---|---|---|
| .. | ||
| api.go | ||
| api_test.go | ||
| config.go | ||
| config_test.go | ||
| database.go | ||
| defaults.go | ||
| doc.go | ||
| endpoints.go | ||
| errors.go | ||
| jwt_auth.go | ||
| jwt_handler.go | ||
| lifecycle.go | ||
| node.go | ||
| node_auth_test.go | ||
| node_example_test.go | ||
| node_test.go | ||
| rpcstack.go | ||
| rpcstack_test.go | ||
| utils_test.go | ||