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)
| 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. |
| 96 | func 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 |
no test coverage detected