SetDirectory joins any relative file paths with dir.
(dir string)
| 362 | |
| 363 | // SetDirectory joins any relative file paths with dir. |
| 364 | func (c *HTTPClientConfig) SetDirectory(dir string) { |
| 365 | if c == nil { |
| 366 | return |
| 367 | } |
| 368 | c.TLSConfig.SetDirectory(dir) |
| 369 | c.BasicAuth.SetDirectory(dir) |
| 370 | c.Authorization.SetDirectory(dir) |
| 371 | c.OAuth2.SetDirectory(dir) |
| 372 | c.HTTPHeaders.SetDirectory(dir) |
| 373 | c.BearerTokenFile = JoinDir(dir, c.BearerTokenFile) |
| 374 | } |
| 375 | |
| 376 | // nonZeroCount returns the amount of values that are non-zero. |
| 377 | func nonZeroCount[T comparable](values ...T) int { |
nothing calls this directly
no test coverage detected