SetMode sets the given authentication mode as the only allowed one for future requests. That is, it replaces all modes that were previously added.
(m AuthMode)
| 200 | // SetMode sets the given authentication mode as the only allowed one for |
| 201 | // future requests. That is, it replaces all modes that were previously added. |
| 202 | func SetMode(m AuthMode) { |
| 203 | modes = []AuthMode{m} |
| 204 | } |
| 205 | |
| 206 | // AddMode adds the given authentication mode to the list of modes that future |
| 207 | // requests can authenticate against. |
no outgoing calls