httpClient returns the shared HTTP client, initializing it on first use.
()
| 38 | |
| 39 | // httpClient returns the shared HTTP client, initializing it on first use. |
| 40 | func (c *RegistrationClient) httpClient() *http.Client { |
| 41 | c.clientOnce.Do(func() { |
| 42 | c.client = httpclient.NewWithTimeout(c.httpTimeout()) |
| 43 | }) |
| 44 | return c.client |
| 45 | } |
| 46 | |
| 47 | // baseURL returns FrontendURL with any trailing slash stripped. |
| 48 | func (c *RegistrationClient) baseURL() string { |
no test coverage detected