WithBasicAuth sets the request's Authorization header to use the provided credentials
(username, password string)
| 72 | |
| 73 | // WithBasicAuth sets the request's Authorization header to use the provided credentials |
| 74 | func WithBasicAuth(username, password string) Option { |
| 75 | return func(opts *getterOptions) { |
| 76 | opts.username = username |
| 77 | opts.password = password |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | func WithPassCredentialsAll(pass bool) Option { |
| 82 | return func(opts *getterOptions) { |
no outgoing calls
searching dependent graphs…