SetDirectory makes headers file relative to the configuration file.
(dir string)
| 88 | |
| 89 | // SetDirectory makes headers file relative to the configuration file. |
| 90 | func (h *Header) SetDirectory(dir string) { |
| 91 | for i := range h.Files { |
| 92 | h.Files[i] = JoinDir(dir, h.Files[i]) |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | // NewHeadersRoundTripper returns a RoundTripper that sets HTTP headers on |
| 97 | // requests as configured. |