MCPcopy Index your code
hub / github.com/docker/docker-agent / doRequest

Function doRequest

pkg/httpclient/client_test.go:96–99  ·  view source on GitHub ↗

doRequest creates an HTTP client with the given options, sends a GET request to a test server, and returns the headers the server received.

(t *testing.T, opts ...Opt)

Source from the content-addressed store, hash-verified

94// doRequest creates an HTTP client with the given options, sends a GET request
95// to a test server, and returns the headers the server received.
96func doRequest(t *testing.T, opts ...Opt) http.Header {
97 t.Helper()
98 return doRequestWithCtx(t, t.Context(), opts...)
99}
100
101// doRequestWithCtx is like doRequest but uses the supplied context for
102// the outbound request, so callers can exercise context-derived header

Callers 2

TestHeadersFunction · 0.85

Calls 2

doRequestWithCtxFunction · 0.85
ContextMethod · 0.80

Tested by

no test coverage detected